Address minor lint error

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-09-02 15:12:23 +02:00
parent bf9a4d3476
commit 211a8eb973

View File

@ -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
}