summaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2005-05-06 04:10:04 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-06 04:32:59 +0200
commit6741f3a7f9922391cd02b3ca1329e669497dc22f (patch)
treecda5ab7ce1bc4b36cb164e6daee18c7649348fb4 /arch/ppc64/kernel
parent[PATCH] drivers/scsi/sym53c416.c: fix a wrong check (diff)
downloadlinux-6741f3a7f9922391cd02b3ca1329e669497dc22f.tar.xz
linux-6741f3a7f9922391cd02b3ca1329e669497dc22f.zip
[PATCH] arch/ppc64: Replace custom MIN macro
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> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc64/kernel')
-rw-r--r--arch/ppc64/kernel/signal.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/ppc64/kernel/signal.c b/arch/ppc64/kernel/signal.c
index a95a2b49a1d5..bf782276984c 100644
--- a/arch/ppc64/kernel/signal.c
+++ b/arch/ppc64/kernel/signal.c
@@ -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