All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Use NULL for pointer
@ 2007-07-12 16:49 Atsushi Nemoto
  2007-07-12 16:42 ` Ralf Baechle
  2007-07-12 23:50 ` post
  0 siblings, 2 replies; 4+ messages in thread
From: Atsushi Nemoto @ 2007-07-12 16:49 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

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>
---
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 80ea4fa..5e9fa83 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:

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-13 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 16:49 [PATCH] Use NULL for pointer Atsushi Nemoto
2007-07-12 16:42 ` Ralf Baechle
2007-07-12 23:50 ` post
2007-07-13 13:07   ` Atsushi Nemoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.