Skip to content

Commit

Permalink
mm: Fix warning comparing pointer to 0
Browse files Browse the repository at this point in the history
Fix the following coccicheck warning:

./arch/alpha/mm/fault.c:193:52-53: WARNING comparing pointer to 0.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
  • Loading branch information
Jiapeng Chong authored and intel-lab-lkp committed Nov 24, 2021
1 parent b828014 commit 60f2c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/alpha/mm/fault.c
Expand Up @@ -192,7 +192,7 @@ do_page_fault(unsigned long address, unsigned long mmcsr,

no_context:
/* Are we prepared to handle this fault as an exception? */
if ((fixup = search_exception_tables(regs->pc)) != 0) {
if (!(fixup = search_exception_tables(regs->pc)) {
unsigned long newpc;
newpc = fixup_exception(dpf_reg, fixup, regs->pc);
regs->pc = newpc;
Expand Down

0 comments on commit 60f2c3a

Please sign in to comment.