All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/7] staging: ft1000: ft1000-pcmcia: removed unnecessary braces
@ 2015-02-09  7:11 Pushpendra Singh
  2015-02-09  7:11 ` [PATCH v2 2/7] staging: ft1000: ft1000-pcmcia: add blank line after declarations Pushpendra Singh
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Pushpendra Singh @ 2015-02-09  7:11 UTC (permalink / raw)
  To: linux-kernel, devel, marek.belisko, gregkh; +Cc: Pushpendra Singh

Remove checkpatch.pl warning
WARNING: braces {} are not necessary for any arm of this statement
+                               if (tempword & 0x1f) {
[...]
+                               } else {
[...]

Signed-off-by: Pushpendra Singh <pushpendra.singh@smartplayin.com>
---
 drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
index e7072bc..374db6d 100644
--- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
+++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
@@ -1947,11 +1947,10 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id)
 						ft1000_read_reg(dev,
 								FT1000_REG_MAG_DFSR);
 				}
-				if (tempword & 0x1f) {
+				if (tempword & 0x1f)
 					ft1000_copy_up_pkt(dev);
-				} else {
+				else
 					break;
-				}
 				cnt++;
 			} while (cnt < MAX_RCV_LOOP);
 
-- 
1.9.1


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

end of thread, other threads:[~2015-03-07 11:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09  7:11 [PATCH v2 1/7] staging: ft1000: ft1000-pcmcia: removed unnecessary braces Pushpendra Singh
2015-02-09  7:11 ` [PATCH v2 2/7] staging: ft1000: ft1000-pcmcia: add blank line after declarations Pushpendra Singh
2015-02-09  7:12 ` [PATCH v2 3/7] staging: ft1000: ft1000-pcmcia: remove unnecessary parentheses Pushpendra Singh
2015-02-09  7:12 ` [PATCH v2 4/7] staging: ft1000: ft1000-usb: " Pushpendra Singh
2015-02-09  7:12 ` [PATCH v2 5/7] staging: ft1000: ft1000-usb: removed unnecessary braces Pushpendra Singh
2015-02-09  7:12 ` [PATCH v2 6/7] staging: ft1000: ft1000-usb: remove conditional statement Pushpendra Singh
2015-02-09  7:12 ` [PATCH v2 7/7] staging: ft1000: ft1000-usb: remove unnecessary out of memory warning Pushpendra Singh
2015-03-07  0:30 ` [PATCH v2 1/7] staging: ft1000: ft1000-pcmcia: removed unnecessary braces Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.