This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: syscall return value check is wrong
ret is uintptr and always >= 0. errno is enough for error checking. This is causing lint error: /home/vagrant/workplace/golang/src/github.com/kata-containers/runtime/virtcontainers/utils cli/kata-check.go:446:20: SA4003: no value of type uintptr is less than 0 (staticcheck) if errno != 0 || ret <= 0 { ^ Signed-off-by: Peng Tao <bergwolf@hyper.sh>
- Loading branch information