* [PATCH] arch/ppc64: Replace custom MIN macro
@ 2005-05-06 2:10 Paul Mackerras
0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2005-05-06 2:10 UTC (permalink / raw)
To: akpm, torvalds; +Cc: anton, linux-kernel
This patch is from Tobias Klauser.
Replace a custom MIN() macro with the min() macro from kernel.h
This patch removes 4 lines of redundant code.
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Paul Mackerras <paulus@samba.org>
---
diff -urpN linux-2.6.12-rc2.orig/arch/ppc64/kernel/signal.c linux-2.6.12-rc2/arch/ppc64/kernel/signal.c
--- linux-2.6.12-rc2.orig/arch/ppc64/kernel/signal.c 2005-04-07 16:18:30.287667016 +0200
+++ linux-2.6.12-rc2/arch/ppc64/kernel/signal.c 2005-04-07 16:19:14.159997408 +0200
@@ -42,11 +42,7 @@
#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
-#ifndef MIN
-#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-#endif
-
-#define GP_REGS_SIZE MIN(sizeof(elf_gregset_t), sizeof(struct pt_regs))
+#define GP_REGS_SIZE min(sizeof(elf_gregset_t), sizeof(struct pt_regs))
#define FP_REGS_SIZE sizeof(elf_fpregset_t)
#define TRAMP_TRACEBACK 3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-06 2:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-06 2:10 [PATCH] arch/ppc64: Replace custom MIN macro Paul Mackerras
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®