public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: wilc1000: Removed unnecessary braces
@ 2016-01-06 13:29 Anjali Menon
  2016-01-06 17:52 ` Joe Perches
  0 siblings, 1 reply; 2+ messages in thread
From: Anjali Menon @ 2016-01-06 13:29 UTC (permalink / raw)
  To: gregkh; +Cc: linux-wireless, devel, linux-kernel, Anjali Menon

Removed unnecessary braces for single statement blocks to
fix the warning detected by checkpatch.pl

WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Anjali Menon <cse.anjalimenon@gmail.com>
---
 drivers/staging/wilc1000/wilc_wlan_cfg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c
index a34a81c..afb5d2c 100644
--- a/drivers/staging/wilc1000/wilc_wlan_cfg.c
+++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c
@@ -251,9 +251,8 @@ static int wilc_wlan_cfg_set_bin(u8 *frame, u32 offset, u16 id, u8 *b, u32 size)
 
 	if ((b != NULL) && (size != 0)) {
 		memcpy(&buf[4], b, size);
-		for (i = 0; i < size; i++) {
+		for (i = 0; i < size; i++)
 			checksum += buf[i + 4];
-		}
 	}
 
 	buf[size + 4] = checksum;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-06 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06 13:29 [PATCH] staging: wilc1000: Removed unnecessary braces Anjali Menon
2016-01-06 17:52 ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox