diff options
author | Vladimir Lavor <vlavor@cisco.com> | 2020-09-04 14:23:10 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2020-09-07 13:54:08 +0000 |
commit | e517439567ad843033257664fdfe90a9173b0aa6 (patch) | |
tree | 325bf97c0512b6ce729ba74a287af98a39c06a85 /adapter/statsclient/stat_segment_api.go | |
parent | e3cea0cd4447be264374b56788da0e93b2e67a7e (diff) |
Remove unnecessary allocation
Change-Id: If77b7b37ae736fdf21f4c337350905480e6fb011
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'adapter/statsclient/stat_segment_api.go')
-rw-r--r-- | adapter/statsclient/stat_segment_api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adapter/statsclient/stat_segment_api.go b/adapter/statsclient/stat_segment_api.go index f2e4219..0ca0c8b 100644 --- a/adapter/statsclient/stat_segment_api.go +++ b/adapter/statsclient/stat_segment_api.go @@ -55,8 +55,8 @@ type statDirectoryName []byte // statSegment represents common API for every stats API version type statSegment interface { // GetDirectoryVector returns pointer to memory where the beginning - // of the data directory is located - GetDirectoryVector() (unsafe.Pointer, error) + // of the data directory is located. + GetDirectoryVector() unsafe.Pointer // GetStatDirOnIndex accepts directory vector and particular index. // Returns pointer to the beginning of the segment. Also the directory |