Browse Source

Fixed "go vet" problem: unreachable code

Dmitry Yu Okunev 7 years ago
parent
commit
4d4ab70939
1 changed files with 0 additions and 2 deletions
  1. 0 2
      usb_linux.go

+ 0 - 2
usb_linux.go

@@ -72,8 +72,6 @@ func (hid *usbDevice) claim() error {
 
 
 	if r, errno := hid.ioctl(USBDEVFS_CLAIM, &ifno); r == -1 {
 	if r, errno := hid.ioctl(USBDEVFS_CLAIM, &ifno); r == -1 {
 		return errno
 		return errno
-	} else {
-		return nil
 	}
 	}
 	return nil
 	return nil
 }
 }