Changeset 4172db4a in mainline for uspace/drv/block/usbmast/main.c


Ignore:
Timestamp:
2018-01-25T02:05:57Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8277c0
Parents:
92a7b296
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-24 22:51:14)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-25 02:05:57)
Message:

usb: fix some simple errors clang scan found

File:
1 edited

Legend:

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

    r92a7b296 r4172db4a  
    180180        mdev->luns = calloc(mdev->lun_count, sizeof(ddf_fun_t*));
    181181        if (mdev->luns == NULL) {
    182                 rc = ENOMEM;
    183182                usb_log_error("Failed allocating luns table.");
    184                 goto error;
     183                return ENOMEM;
    185184        }
    186185
Note: See TracChangeset for help on using the changeset viewer.