Always return translated error code

LIBUSB_SUCCESS is also handled by libx52_translate_libusb_error.
feature/test-new-mem-api
nirenjan 2017-10-27 14:20:19 -07:00
parent 02c24cc964
commit 0913212ecc
1 changed files with 1 additions and 5 deletions

View File

@ -84,12 +84,8 @@ int libx52_vendor_command(libx52_device *x52, uint16_t index, uint16_t value)
}
}
if (rc == LIBUSB_SUCCESS) {
return LIBX52_SUCCESS;
} else {
return libx52_translate_libusb_error(rc);
}
}
static int libx52_write_line(libx52_device *x52, uint8_t line_index)
{