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] [thread-next>] [day] [month] [year] [list]
Message-Id: <1403100606-14881-3-git-send-email-christian.bay@studium.fau.de>
Date:	Wed, 18 Jun 2014 16:10:06 +0200
From:	Christian Bay <christian.bay@...dium.fau.de>
To:	gregkh@...uxfoundation.org
Cc:	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
	lisa@...apiadmin.com, linux-kernel@...cs.fau.de,
	Christian Bay <christian.bay@...dium.fau.de>,
	Martin Gumbrecht <martin.gumbrecht@...glemail.com>
Subject: [PATCH 2/2] Staging: bcm: Queue.h: fix checkpatch errors

This patch fixes all checkpatch errors and warnings in Queue.h:
Whitespaces, brackets and comments according to the coding guideline

Signed-off-by: Christian Bay <christian.bay@...dium.fau.de>
Signed-off-by: Martin Gumbrecht <martin.gumbrecht@...glemail.com>
---
 drivers/staging/bcm/Queue.h | 44 +++++++++++++++++++++-----------------------
 1 file changed, 21 insertions(+), 23 deletions(-)

diff --git a/drivers/staging/bcm/Queue.h b/drivers/staging/bcm/Queue.h
index e1f1da2..7b4a8a8 100644
--- a/drivers/staging/bcm/Queue.h
+++ b/drivers/staging/bcm/Queue.h
@@ -1,31 +1,29 @@
 /*************************************
-* 	Queue.h
+*	Queue.h
 **************************************/
 #ifndef	__QUEUE_H__
 #define	__QUEUE_H__
 
 
 
-#define ENQUEUEPACKET(_Head, _Tail,_Packet)	\
-do						\
-{                                               \
-    if (!_Head) {                           \
-        	_Head = _Packet;                \
-        } 					\
+#define ENQUEUEPACKET(_Head, _Tail, _Packet)	\
+do {						\
+	if (!_Head) {                           \
+		_Head = _Packet;                \
+	}					\
 	else {                                  \
-        	(_Tail)->next = _Packet; 	\
-        }                                       \
-   	(_Packet)->next = NULL;  		\
-    _Tail = _Packet;                        \
-}while(0)
-#define DEQUEUEPACKET(Head, Tail )            	\
-do						\
-{   if(Head)			\
-	{                                            \
-        if (!Head->next) {                      \
-        	Tail = NULL;                    \
-        }                                       \
-        Head = Head->next;                      \
-	}		\
-}while(0)
-#endif	//__QUEUE_H__
+		(_Tail)->next = _Packet;	\
+	}                                       \
+	(_Packet)->next = NULL;			\
+	_Tail = _Packet;                        \
+} while (0)
+#define DEQUEUEPACKET(Head, Tail)		\
+do {						\
+	if (Head) {				\
+		if (!Head->next) {              \
+			Tail = NULL;            \
+		}                               \
+		Head = Head->next;              \
+	}                \
+} while (0)
+#endif /* __QUEUE_H__ */
-- 
1.9.1

--
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