Commit 7be0b065 authored by Sasha Levin's avatar Sasha Levin Committed by H. Peter Anvin

um: don't compare a pointer to 0

Signed-off-by: default avatarSasha 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: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 64441745
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment