Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1526755 > unrolled thread

[PATCH 3/5] staging: emxx_udc: emxx_udc.c {} Single statement blocks

Started byWalt Feasel <waltfeasel@gmail.com>
First post2016-11-21 16:10 +0100
Last post2016-11-21 16:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/5] staging: emxx_udc: emxx_udc.c {} Single statement blocks Walt Feasel <waltfeasel@gmail.com> - 2016-11-21 16:10 +0100

#1526755 — [PATCH 3/5] staging: emxx_udc: emxx_udc.c {} Single statement blocks

FromWalt Feasel <waltfeasel@gmail.com>
Date2016-11-21 16:10 +0100
Subject[PATCH 3/5] staging: emxx_udc: emxx_udc.c {} Single statement blocks
Message-ID<sFYoi-2MJ-57@gated-at.bofh.it>
Make suggested checkpatch modification for
WARNING: braces {} are not necessary for single
statement blocks

Signed-off-by: Walt Feasel <waltfeasel@gmail.com>
---
 drivers/staging/emxx_udc/emxx_udc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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));
 
-- 
2.1.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web