mirror of
https://github.com/clearml/go-nvlib
synced 2025-03-03 18:52:30 +00:00
Address minor lint error
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
bf9a4d3476
commit
211a8eb973
@ -46,7 +46,7 @@ func (n *nvmlLib) Init() Return {
|
||||
if n.refcount == 0 {
|
||||
errorStringFunc = nvml.ErrorString
|
||||
}
|
||||
n.refcount += 1
|
||||
n.refcount++
|
||||
|
||||
return SUCCESS
|
||||
}
|
||||
@ -60,7 +60,7 @@ func (n *nvmlLib) Shutdown() Return {
|
||||
|
||||
n.Lock()
|
||||
defer n.Unlock()
|
||||
n.refcount -= 1
|
||||
n.refcount--
|
||||
if n.refcount == 0 {
|
||||
errorStringFunc = defaultErrorStringFunc
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user