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>
This commit is contained in:
parent
6444174548
commit
7be0b06520
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue