Thread (1 message) 1 message, 1 author, 2016-06-17
DORMANTno replies

[PATCH 7/9] ARM: probes: fix warning on NULL/0 substitution

From: Ben Dooks <hidden>
Date: 2016-06-17 15:05:11
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

Fix warning from use of '0' as NULL pointer.

arch/arm/probes/kprobes/actions-common.c:131:42: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <redacted>
---
Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel at lists.infradead.org
---
 arch/arm/probes/kprobes/actions-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/probes/kprobes/actions-common.c b/arch/arm/probes/kprobes/actions-common.c
index bd20a71..60bf926 100644
--- a/arch/arm/probes/kprobes/actions-common.c
+++ b/arch/arm/probes/kprobes/actions-common.c
@@ -128,7 +128,7 @@ enum probes_insn __kprobes
 kprobe_decode_ldmstm(probes_opcode_t insn, struct arch_probes_insn *asi,
 		const struct decode_header *h)
 {
-	probes_insn_handler_t *handler = 0;
+	probes_insn_handler_t *handler = NULL;
 	unsigned reglist = insn & 0xffff;
 	int is_ldm = insn & 0x100000;
 	int rn = (insn >> 16) & 0xf;
-- 
2.8.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help