* [PATCH] proc: remove unused ADDBUF macro
@ 2008-10-06 22:29 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2008-10-06 22:29 UTC (permalink / raw)
To: linux-kernel
[added to proc.git]
commit abac1335ec9c43834ff764eee3c4d026b6b9bba6
Author: Alexey Dobriyan <adobriyan@gmail.com>
Date: Tue Oct 7 01:58:45 2008 +0400
proc: remove now unneeded ADDBUF macro
After local seq_file conversion it was forgotten.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 1c8d7b5..f4bc0e7 100644
--- a/fs/proc/array.c
+++ b/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-10-06 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-06 22:29 [PATCH] proc: remove unused ADDBUF macro Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®