From: Atsushi Nemoto Date: Thu, 12 Jul 2007 16:49:49 +0000 (+0900) Subject: [MIPS] Sparse: Use NULL for pointer X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=28fc582cc9b7fc6ed6a9fbf9565a2b1e56eee880;p=deliverable%2Flinux.git [MIPS] Sparse: Use NULL for pointer This fixes a sparse warning: arch/mips/kernel/traps.c:376:44: warning: Using plain integer as NULL pointer Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 80ea4fa95bd9..5e9fa83c4ef0 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -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: