aboutsummaryrefslogtreecommitdiff
path: root/arch/um/include/longjmp.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2006-07-14 00:24:02 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-14 21:53:52 -0700
commita5df0d1a2c0f7dbd135d978d02daf2d99e62ff7a (patch)
tree89824d59364a431d332ce68d548068db4616e68c /arch/um/include/longjmp.h
parent8477b55ba11a49515b26573a90414b718179c908 (diff)
[PATCH] uml: tidy longjmp macro
The UML_SETJMP macro was requiring its users to pass in a argument which it could supply itself, since it wasn't used outside that invocation of the macro. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/include/longjmp.h')
-rw-r--r--arch/um/include/longjmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/include/longjmp.h b/arch/um/include/longjmp.h
index 8e7053013f7..1b5c0131a12 100644
--- a/arch/um/include/longjmp.h
+++ b/arch/um/include/longjmp.h
@@ -8,8 +8,8 @@
longjmp(*buf, val); \
} while(0)
-#define UML_SETJMP(buf, enable) ({ \
- int n; \
+#define UML_SETJMP(buf) ({ \
+ int n, enable; \
enable = get_signals(); \
n = setjmp(*buf); \
if(n != 0) \