Changeset 132ab5d1 in mainline for uspace/drv/block/usbmast


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
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.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

Location:
uspace/drv/block/usbmast
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/usbmast/bo_trans.c

    r8bfb163 r132ab5d1  
    228228 *
    229229 * @param mfun          Mass storage function
    230  * @return              Error code of maximum LUN (index, not count)
     230 * @return              Maximum LUN (index, not count), or -1
    231231 */
    232232int usb_massstor_get_max_lun(usbmast_dev_t *mdev)
     
    240240            &data_recv_len);
    241241        if (rc != EOK) {
    242                 return rc;
     242                return -1;
    243243        }
    244244        if (data_recv_len != 1) {
    245                 return EEMPTY;
    246         }
    247         return (int) max_lun;
     245                return -1;
     246        }
     247        return max_lun;
    248248}
    249249
  • uspace/drv/block/usbmast/main.c

    r8bfb163 r132ab5d1  
    215215 * @param mdev          Mass storage device
    216216 * @param lun           LUN
    217  * @return              EOK on success or negative error code.
     217 * @return              EOK on success or an error code.
    218218 */
    219219static int usbmast_fun_create(usbmast_dev_t *mdev, unsigned lun)
Note: See TracChangeset for help on using the changeset viewer.