aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2012-12-20 14:11:35 -0500
committerH. Peter Anvin <hpa@linux.intel.com>2012-12-20 14:49:39 -0500
commit7be0b06520e8219e28f54cd05e1310e7e2d921ee (patch)
tree6ba82b43c1a80a0097406e60ae88e0dab02e650d /arch
parent6444174548f6556fcf26c84d5296defd295914c4 (diff)
um: don't compare a pointer to 0
Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Link: http://lkml.kernel.org/r/1356030701-16284-27-git-send-email-sasha.levin@oracle.com Cc: Richard Weinberger <richard@nod.at> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/um/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/um/fault.c b/arch/x86/um/fault.c
index 8784ab30d91b..84ac7f7b0257 100644
--- a/arch/x86/um/fault.c
+++ b/arch/x86/um/fault.c
@@ -20,7 +20,7 @@ int arch_fixup(unsigned long address, struct uml_pt_regs *regs)
20 const struct exception_table_entry *fixup; 20 const struct exception_table_entry *fixup;
21 21
22 fixup = search_exception_tables(address); 22 fixup = search_exception_tables(address);
23 if (fixup != 0) { 23 if (fixup) {
24 UPT_IP(regs) = fixup->fixup; 24 UPT_IP(regs) = fixup->fixup;
25 return 1; 25 return 1;
26 } 26 }