From: Stephen Hemminger Date: Thu, 31 Jan 2008 12:07:08 +0000 (-0800) Subject: [NETFILTER]: nf_nat_snmp: sparse warning X-Git-Tag: v2.6.25-rc1~1089^2~79 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=06aa10728e36265cce82a53de025ad1aa672b2b0;p=linux-2.6-omap-h63xx.git [NETFILTER]: nf_nat_snmp: sparse warning Signed-off-by: Stephen Hemminger Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/ipv4/netfilter/nf_nat_snmp_basic.c b/net/ipv4/netfilter/nf_nat_snmp_basic.c index 07f2a49926d..540ce6ae887 100644 --- a/net/ipv4/netfilter/nf_nat_snmp_basic.c +++ b/net/ipv4/netfilter/nf_nat_snmp_basic.c @@ -260,7 +260,7 @@ static unsigned char asn1_eoc_decode(struct asn1_ctx *ctx, unsigned char *eoc) { unsigned char ch; - if (eoc == 0) { + if (eoc == NULL) { if (!asn1_octet_decode(ctx, &ch)) return 0;