diff options
author | Walt Feasel <waltfeasel@gmail.com> | 2016-11-21 10:05:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-23 10:05:38 +0100 |
commit | b6576797f698477fc2118cdefdb87ccbfe6373fa (patch) | |
tree | 27fe5d835bf494a15d8951961e5e3347e9fd29dc /drivers/staging/emxx_udc/emxx_udc.c | |
parent | 89eda1faeed7c11889a9dbdd12e9286ee0488503 (diff) |
staging: emxx_udc: emxx_udc.c {} Single statement blocks
Make suggested checkpatch modification for
WARNING: braces {} are not necessary for single
statement blocks
Signed-off-by: Walt Feasel <waltfeasel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/emxx_udc/emxx_udc.c')
-rw-r--r-- | drivers/staging/emxx_udc/emxx_udc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index de8f06597cd4..3a29f387639d 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -1575,9 +1575,8 @@ static int std_req_get_status(struct nbu2ss_udc *udc) u8 ep_adrs; int result = -EINVAL; - if ((udc->ctrl.wValue != 0x0000) || (direction != USB_DIR_IN)) { + if ((udc->ctrl.wValue != 0x0000) || (direction != USB_DIR_IN)) return result; - } length = min_t(u16, udc->ctrl.wLength, sizeof(status_data)); |