summaryrefslogtreecommitdiffstats
path: root/libpore
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2015-02-24 12:14:37 +0100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-26 18:33:07 +1100
commitb0ae8743ce09be387e19d76c986a1296c003a4c5 (patch)
tree14a0252711889fc2ac1ae280a47d3572386fe936 /libpore
parent63782490887b158e29f10d5eecc65f5da4afd14a (diff)
downloadblackbird-skiboot-b0ae8743ce09be387e19d76c986a1296c003a4c5.tar.gz
blackbird-skiboot-b0ae8743ce09be387e19d76c986a1296c003a4c5.zip
sparse: fix Using plain integer as NULL pointer warning
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libpore')
-rw-r--r--libpore/pore_inline_assembler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpore/pore_inline_assembler.c b/libpore/pore_inline_assembler.c
index 470b2fa4..44a93db8 100644
--- a/libpore/pore_inline_assembler.c
+++ b/libpore/pore_inline_assembler.c
@@ -747,7 +747,7 @@ pore_inline_context_create(PoreInlineContext *ctx,
PORE_INLINE_8_BYTE_DATA |
PORE_INLINE_DISASSEMBLE_UNKNOWN;
- if ((ctx == 0) || ((memory == 0) && (size != 0)) ||
+ if ((ctx == NULL) || ((memory == NULL) && (size != 0)) ||
((options & ~valid_options) != 0)) {
rc = PORE_INLINE_INVALID_PARAMETER;
} else {
@@ -759,7 +759,7 @@ pore_inline_context_create(PoreInlineContext *ctx,
pore_inline_context_reset(ctx);
}
- if (ctx != 0) {
+ if (ctx != NULL) {
ctx->error = rc;
if (rc) {
ctx->size = 0; /* Effectively prevents using the ctx */
OpenPOWER on IntegriCloud