Skip to content

Commit

Permalink
x86: ia32_signal: cleanup macro COPY
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Nov 18, 2008
1 parent 9cc3c49 commit b78a5b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/x86/ia32/ia32_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit b78a5b5

Please sign in to comment.