[MIPS] Sparse: Use NULL for pointer
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 12 Jul 2007 16:49:49 +0000 (01:49 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 12 Jul 2007 16:41:20 +0000 (17:41 +0100)
This fixes a sparse warning:

arch/mips/kernel/traps.c:376:44: warning: Using plain integer as NULL pointer

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c

index 80ea4fa95bd9b121b4b201e65f74e12b29dbb948..5e9fa83c4ef0adcaff30dd3fe6d4f239331d3b63 100644 (file)
@@ -373,7 +373,7 @@ asmlinkage void do_be(struct pt_regs *regs)
                action = MIPS_BE_FIXUP;
 
        if (board_be_handler)
-               action = board_be_handler(regs, fixup != 0);
+               action = board_be_handler(regs, fixup != NULL);
 
        switch (action) {
        case MIPS_BE_DISCARD: