public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: i4l: act2000: Fix checkpatch warning
@ 2016-08-30 23:04 Anson Jacob
  2016-08-31  7:19 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Anson Jacob @ 2016-08-30 23:04 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel

Fix checkpatch.pl warning:
braces {} are not necessary for single statement blocks
Missing a blank line after declarations

Signed-off-by: Anson Jacob <ansonjacob.aj@gmail.com>
---
 drivers/staging/i4l/act2000/act2000_isa.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/i4l/act2000/act2000_isa.c b/drivers/staging/i4l/act2000/act2000_isa.c
index f0eb844..fbb15f5 100644
--- a/drivers/staging/i4l/act2000/act2000_isa.c
+++ b/drivers/staging/i4l/act2000/act2000_isa.c
@@ -134,9 +134,9 @@ act2000_isa_config_irq(act2000_card *card, short irq)
 {
 	int old_irq;
 
-	if (card->flags & ACT2000_FLAGS_IVALID) {
+	if (card->flags & ACT2000_FLAGS_IVALID)
 		free_irq(card->irq, card);
-	}
+
 	card->flags &= ~ACT2000_FLAGS_IVALID;
 	outb(ISA_COR_IRQOFF, ISA_PORT_COR);
 	if (!irq)
@@ -259,6 +259,7 @@ act2000_isa_receive(act2000_card *card)
 					       "act2000_isa_receive: Invalid CAPI msg\n");
 					{
 						int i; __u8 *p; __u8 *t; __u8 tmp[30];
+
 						for (i = 0, p = (__u8 *)&card->idat.isa.rcvhdr, t = tmp; i < 8; i++)
 							t += sprintf(t, "%02x ", *(p++));
 						printk(KERN_WARNING "act2000_isa_receive: %s\n", tmp);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [PATCH] staging: i4l: act2000: Fix checkpatch warning
@ 2016-08-30 22:58 Anson Jacob
  0 siblings, 0 replies; 3+ messages in thread
From: Anson Jacob @ 2016-08-30 22:58 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel

Fix checkpatch.pl warning:
line over 80 characters

Signed-off-by: Anson Jacob <ansonjacob.aj@gmail.com>
---
 drivers/staging/i4l/act2000/act2000.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/i4l/act2000/act2000.h b/drivers/staging/i4l/act2000/act2000.h
index 321d437..16be456 100644
--- a/drivers/staging/i4l/act2000/act2000.h
+++ b/drivers/staging/i4l/act2000/act2000.h
@@ -198,5 +198,5 @@ static inline void act2000_schedule_poll(act2000_card *card)
 
 extern char *act2000_find_eaz(act2000_card *, char);
 
-#endif                          /* defined(__KERNEL__) || defined(__DEBUGVAR__) */
-#endif                          /* act2000_h */
+#endif                       /* defined(__KERNEL__) || defined(__DEBUGVAR__) */
+#endif                       /* act2000_h */
-- 
2.7.4

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

end of thread, other threads:[~2016-08-31  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-30 23:04 [PATCH] staging: i4l: act2000: Fix checkpatch warning Anson Jacob
2016-08-31  7:19 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2016-08-30 22:58 Anson Jacob

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