Skip to content

Commit

Permalink
um: don't compare a pointer to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sasha Levin authored and H. Peter Anvin committed Dec 20, 2012
1 parent 6444174 commit 7be0b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/um/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int arch_fixup(unsigned long address, struct uml_pt_regs *regs)
const struct exception_table_entry *fixup;

fixup = search_exception_tables(address);
if (fixup != 0) {
if (fixup) {
UPT_IP(regs) = fixup->fixup;
return 1;
}
Expand Down

0 comments on commit 7be0b06

Please sign in to comment.