[PATCH] oprofile: use NULL for pointer

From: Randy.Dunlap
Date: Sun Jan 23 2005 - 02:06:50 EST



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@xxxxxxxx>

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;
}

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/