lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 12 Mar 2010 15:28:16 +0000
From:	André Silva <andre.beat@...il.com>
To:	gregkh@...e.de, linville@...driver.com
Cc:	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
	Andre Silva <andre.beat@...il.com>
Subject: [PATCH 2/2] Staging: arlan: fixed coding style issues in arlan-proc.c

From: Andre Silva <andre.beat@...il.com>

This is a patch to the arlan-proc.c file that fixes up multiple coding style
errors and warnings found by the checkpatch.pl.
I fixed some issues from my last patch as requested by Joe Perches.

Signed-off-by: Andre Silva <andre.beat@...il.com>
---
 drivers/staging/arlan/arlan-proc.c |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/drivers/staging/arlan/arlan-proc.c b/drivers/staging/arlan/arlan-proc.c
index 62cd1d0..ee8dbab 100644
--- a/drivers/staging/arlan/arlan-proc.c
+++ b/drivers/staging/arlan/arlan-proc.c
@@ -9,21 +9,23 @@
 
 
 
-#define ARLAN_STR_SIZE 0x2ff0
-#define DEV_ARLAN_INFO 1
-#define DEV_ARLAN 1
-#define SARLG(type, var) {\
-	pos += sprintf(arlan_drive_info+pos, "%s\t=\t0x%x\n", #var,\
-		READSHMB(priva->card->var));\
-	}
+#define ARLAN_STR_SIZE	0x2ff0
+#define DEV_ARLAN_INFO	1
+#define DEV_ARLAN	1
+#define SARLG(type, var)\
+	do {\
+	pos += sprintf(arlan_drive_info+pos, "%s\t=\t0x%x\n", \
+			#var, READSHMB(priva->card->var));\
+	} while (0)
 
-#define SARLBN(type, var, nn) {\
-	pos += sprintf(arlan_drive_info+pos, "%s\t=\t0x", #var);\
-	for (i = 0; i < nn; i++)\
-		pos += sprintf(arlan_drive_info+pos, "%02x",\
-			READSHMB(priva->card->var[i]));\
+#define SARLBN(type, var, nn)\
+	do {\
+		SARLG(type, var);\
+		for (i = 0; i < nn; i++)\
+			pos += sprintf(arlan_drive_info + pos, "%02x",\
+				READSHMB(priva->card->var[i]));\
 		pos += sprintf(arlan_drive_info+pos, "\n");\
-	}
+	} while (0)
 
 #define SARLBNpln(type, var, nn) {\
 	for (i = 0; i < nn; i++)\
-- 
1.7.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ