Skip to content

Commit

Permalink
golangci-lint for non-mips
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Black <[email protected]>
  • Loading branch information
grooverdan committed Aug 9, 2022
1 parent 597bbfa commit f8f8276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpod/util_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ func Unmount(mount string) {
func createSysBlockSymlink(path string, dir string) error {
statT := unix.Stat_t{}
if err := unix.Stat(path, &statT); err == nil {
major, minor := unix.Major(uint64(statT.Dev)), unix.Minor(uint64(statT.Dev))
major, minor := unix.Major(statT.Dev), unix.Minor(statT.Dev)
if statT.Mode&unix.S_IFBLK == unix.S_IFBLK {
// For block, copy what the major/minor the device is, not what fs it is placed on.
major, minor = unix.Major(uint64(statT.Rdev)), unix.Minor(uint64(statT.Rdev))
major, minor = unix.Major(statT.Rdev), unix.Minor(statT.Rdev)
}
target, errlink := os.Readlink(fmt.Sprintf(sysDevBlock+"/%d:%d", major, minor))
if errlink == nil {
Expand Down

0 comments on commit f8f8276

Please sign in to comment.