Explorar o código

proc: remove now unneeded ADDBUF macro

After local seq_file conversion it was forgotten.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Alexey Dobriyan %!s(int64=16) %!d(string=hai) anos
pai
achega
45acb8db06
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      fs/proc/array.c

+ 0 - 5
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;