Skip to content
Snippets Groups Projects
Commit 7be0b065 authored by Sasha Levin's avatar Sasha Levin Committed by H. Peter Anvin
Browse files

um: don't compare a pointer to 0

parent 64441745
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ int arch_fixup(unsigned long address, struct uml_pt_regs *regs) ...@@ -20,7 +20,7 @@ int arch_fixup(unsigned long address, struct uml_pt_regs *regs)
const struct exception_table_entry *fixup; const struct exception_table_entry *fixup;
fixup = search_exception_tables(address); fixup = search_exception_tables(address);
if (fixup != 0) { if (fixup) {
UPT_IP(regs) = fixup->fixup; UPT_IP(regs) = fixup->fixup;
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment