From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Date: Mon, 17 Nov 2008 23:44:50 +0000 (-0800)
Subject: x86: ia32_signal: cleanup macro COPY
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b78a5b5260abf90d574911e7c7b8d35d5b48d6c0;p=linux.git

x86: ia32_signal: cleanup macro COPY

Impact: cleanup

No need to use temporary variable in this case.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index e2d0bc779bf76..610a17774ea28 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -197,10 +197,8 @@ struct rt_sigframe
 	/* fp state follows here */
 };
 
-#define COPY(x)		{ 		\
-	unsigned int reg;		\
-	err |= __get_user(reg, &sc->x);	\
-	regs->x = reg;			\
+#define COPY(x)			{		\
+	err |= __get_user(regs->x, &sc->x);	\
 }
 
 #define RELOAD_SEG(seg,mask)						\