Skip to contentSkip to conversation

proc: remove unused ADDBUF macro

PATCH New Alexey Dobriyan 1 participant 1 message Oct 6, 2008 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: remove unused ADDBUF macro

[added to proc.git]

commit abac1335ec9c43834ff764eee3c4d026b6b9bba6

Author: Alexey Dobriyan <[email protected]>
Date:   Tue Oct 7 01:58:45 2008 +0400

proc: remove now unneeded ADDBUF macro

After local seq_file conversion it was forgotten.

fs/proc/array.c +0 -5
index 1c8d7b5..f4bc0e7 100644
@@ -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;