Skip to contentSkip to conversation

proc: remove unused ADDBUF()

PATCH New Akinobu Mita 1 participant 1 message Aug 15, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: remove unused ADDBUF()

ADDBUF() macro is not used anymore.

---
 fs/proc/array.c |    5 -----
 1 file changed, 5 deletions(-)
fs/proc/array.c +0 -5
Index: 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;