From: Walt Feasel Date: Mon, 21 Nov 2016 15:05:49 +0000 (-0500) Subject: staging: emxx_udc: emxx_udc.c {} Single statement blocks X-Git-Tag: v5.15~12305^2~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6576797f698477fc2118cdefdb87ccbfe6373fa;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index de8f065..3a29f38 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));