[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <943b3c1845c5482ade5d8b7a628c4f9a88701b61.1472598265.git.ansonjacob.aj@gmail.com>
Date: Tue, 30 Aug 2016 19:04:55 -0400
From: Anson Jacob <ansonjacob.aj@...il.com>
To: gregkh@...uxfoundation.org
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: i4l: act2000: Fix checkpatch warning
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@...il.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
Powered by blists - more mailing lists