mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] oprofile: use NULL for pointer
@ 2005-01-23  6:52 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2005-01-23  6:52 UTC (permalink / raw)
  To: lkml; +Cc: phil.el, akpm


Use NULL instead of 0 for pointer:

arch/x86_64/oprofile/../../i386/oprofile/backtrace.c:30:10: warning: Using plain integer as NULL pointer

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
 arch/i386/oprofile/backtrace.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./arch/i386/oprofile/backtrace.c~oprofile_null ./arch/i386/oprofile/backtrace.c
--- ./arch/i386/oprofile/backtrace.c~oprofile_null	2005-01-22 19:06:29.923734008 -0800
+++ ./arch/i386/oprofile/backtrace.c	2005-01-22 22:05:44.485792064 -0800
@@ -27,7 +27,7 @@ dump_backtrace(struct frame_head * head)
 	/* frame pointers should strictly progress back up the stack
 	 * (towards higher addresses) */
 	if (head >= head->ebp)
-		return 0;
+		return NULL;
 
 	return head->ebp;
 }

--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-23  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-23  6:52 [PATCH] oprofile: use NULL for pointer Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®