um: don't compare a pointer to 0
authorSasha Levin <sasha.levin@oracle.com>
Thu, 20 Dec 2012 19:11:35 +0000 (14:11 -0500)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 20 Dec 2012 19:49:39 +0000 (11:49 -0800)
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>
arch/x86/um/fault.c

index 8784ab3..84ac7f7 100644 (file)
@@ -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;
        }