public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] proc: remove unused ADDBUF()
@ 2008-08-15  7:36 Akinobu Mita
  0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2008-08-15  7:36 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Alexander Viro

ADDBUF() macro is not used anymore.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
---
 fs/proc/array.c |    5 -----
 1 file changed, 5 deletions(-)

Index: 2.6-git/fs/proc/array.c
===================================================================
--- 2.6-git.orig/fs/proc/array.c
+++ 2.6-git/fs/proc/array.c
@@ -86,11 +86,6 @@
 #include <asm/processor.h>
 #include "internal.h"
 
-/* Gcc optimizes away "strlen(x)" for constant x */
-#define ADDBUF(buffer, string) \
-do { memcpy(buffer, string, strlen(string)); \
-     buffer += strlen(string); } while (0)
-
 static inline void task_name(struct seq_file *m, struct task_struct *p)
 {
 	int i;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-15  7:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15  7:36 [PATCH] proc: remove unused ADDBUF() Akinobu Mita

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