Changeset 132ab5d1 in mainline for uspace/drv/block/usbmast
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/drv/block/usbmast
- Files:
-
- 2 edited
-
bo_trans.c (modified) (2 diffs)
-
main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/usbmast/bo_trans.c
r8bfb163 r132ab5d1 228 228 * 229 229 * @param mfun Mass storage function 230 * @return Error code of maximum LUN (index, not count)230 * @return Maximum LUN (index, not count), or -1 231 231 */ 232 232 int usb_massstor_get_max_lun(usbmast_dev_t *mdev) … … 240 240 &data_recv_len); 241 241 if (rc != EOK) { 242 return rc;242 return -1; 243 243 } 244 244 if (data_recv_len != 1) { 245 return EEMPTY;246 } 247 return (int)max_lun;245 return -1; 246 } 247 return max_lun; 248 248 } 249 249 -
uspace/drv/block/usbmast/main.c
r8bfb163 r132ab5d1 215 215 * @param mdev Mass storage device 216 216 * @param lun LUN 217 * @return EOK on success or negativeerror code.217 * @return EOK on success or an error code. 218 218 */ 219 219 static int usbmast_fun_create(usbmast_dev_t *mdev, unsigned lun)
Note:
See TracChangeset
for help on using the changeset viewer.
