public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove untouched code in kfifo_in
@ 2012-10-18 13:59 Wei Yang
  2012-10-18 22:37 ` richard -rw- weinberger
  0 siblings, 1 reply; 14+ messages in thread
From: Wei Yang @ 2012-10-18 13:59 UTC (permalink / raw)
  To: linux-kernel, stefani, jkosina; +Cc: Wei Yang

In kfifo_in marco, one piece of code is arounded by if(0). This code in
introduced by Stefani Seibold <stefani@seibold.net> to suppress a compiler
warning. This warning is not there with the upgrade of gcc version. 

This patch just remove this code.
---
 include/linux/kfifo.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h
index 10308c6..e7015bb 100644
--- a/include/linux/kfifo.h
+++ b/include/linux/kfifo.h
@@ -512,10 +512,6 @@ __kfifo_uint_must_check_helper( \
 	unsigned long __n = (n); \
 	const size_t __recsize = sizeof(*__tmp->rectype); \
 	struct __kfifo *__kfifo = &__tmp->kfifo; \
-	if (0) { \
-		typeof(__tmp->ptr_const) __dummy __attribute__ ((unused)); \
-		__dummy = (typeof(__buf))NULL; \
-	} \
 	(__recsize) ?\
 	__kfifo_in_r(__kfifo, __buf, __n, __recsize) : \
 	__kfifo_in(__kfifo, __buf, __n); \
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread
[parent not found: <1350463837-30244-1-git-send-email-weiyang@linux.vnet.ibm.com>]

end of thread, other threads:[~2012-10-23 19:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-18 13:59 [PATCH] remove untouched code in kfifo_in Wei Yang
2012-10-18 22:37 ` richard -rw- weinberger
2012-10-19  5:23   ` Stefani Seibold
2012-10-19  7:34     ` Jiri Kosina
2012-10-22 23:56       ` Andrew Morton
     [not found]         ` <508600ba.a7fe440a.4c19.fffff64bSMTPIN_ADDED@mx.google.com>
2012-10-23 19:25           ` richard -rw- weinberger
2012-10-23 19:39             ` Andrew Morton
     [not found]     ` <5080f0b3.85712b0a.0d0f.ffff9dd2SMTPIN_ADDED@mx.google.com>
2012-10-19  8:14       ` richard -rw- weinberger
     [not found]         ` <50810e61.688c320a.1baa.6cacSMTPIN_ADDED@mx.google.com>
2012-10-19  8:28           ` richard -rw- weinberger
     [not found] <1350463837-30244-1-git-send-email-weiyang@linux.vnet.ibm.com>
2012-10-17 12:37 ` Jiri Kosina
     [not found]   ` <20121017140136.GA7913@richard.(null)>
2012-10-17 14:05     ` Jiri Kosina
2012-10-17 19:51       ` Stefani Seibold
     [not found]         ` <20121018015959.GD4511@richard.(null)>
2012-10-18  5:34           ` Stefani Seibold
2012-10-18  7:00             ` Jiri Kosina

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