Changes in uspace/drv/block/usbmast/bo_trans.c [b7fd2a0:53b9f2c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/usbmast/bo_trans.c
rb7fd2a0 r53b9f2c 58 58 * @return Error code 59 59 */ 60 errno_t usb_massstor_cmd(usbmast_fun_t *mfun, uint32_t tag, scsi_cmd_t *cmd)61 { 62 errno_t rc;60 int usb_massstor_cmd(usbmast_fun_t *mfun, uint32_t tag, scsi_cmd_t *cmd) 61 { 62 int rc; 63 63 64 64 if (cmd->data_in && cmd->data_out) … … 192 192 * @return Error code 193 193 */ 194 errno_t usb_massstor_reset(usbmast_dev_t *mdev)194 int usb_massstor_reset(usbmast_dev_t *mdev) 195 195 { 196 196 return usb_control_request_set( … … 228 228 * 229 229 * @param mfun Mass storage function 230 * @return Maximum LUN (index, not count), or -1230 * @return Error code of maximum LUN (index, not count) 231 231 */ 232 232 int usb_massstor_get_max_lun(usbmast_dev_t *mdev) … … 234 234 uint8_t max_lun; 235 235 size_t data_recv_len; 236 errno_t rc = usb_control_request_get(236 int rc = usb_control_request_get( 237 237 usb_device_get_default_pipe(mdev->usb_dev), 238 238 USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_INTERFACE, … … 240 240 &data_recv_len); 241 241 if (rc != EOK) { 242 return -1;242 return rc; 243 243 } 244 244 if (data_recv_len != 1) { 245 return -1;246 } 247 return max_lun;245 return EEMPTY; 246 } 247 return (int) max_lun; 248 248 } 249 249
Note:
See TracChangeset
for help on using the changeset viewer.