Skip to content

Commit

Permalink
Follow the formatting used by original author.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmonk committed Sep 3, 2014
1 parent bbfe114 commit 0f93fae
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions usb/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ func newDescriptor(dev *C.libusb_device) (*Descriptor, error) {
}
defer Close(handle)

errno := C.libusb_get_string_descriptor_ascii(
handle,
desc.iSerialNumber,
(*C.uchar)(unsafe.Pointer(&data[0])),
C.int(len(data)))

if errno <= 0 {
if errno := C.libusb_get_string_descriptor_ascii(handle, desc.iSerialNumber, (*C.uchar)(unsafe.Pointer(&data[0])), C.int(len(data))); errno <= 0 {
return nil, usbError(errno)
}

Expand Down

0 comments on commit 0f93fae

Please sign in to comment.