]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: nf_nat_snmp: sparse warning
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 31 Jan 2008 12:07:08 +0000 (04:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:44 +0000 (19:27 -0800)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_snmp_basic.c

index 07f2a49926d4ae1c5ffe6227e0058ff3b19dff05..540ce6ae887c0a797f8db68cb99a0be8c69c98ac 100644 (file)
@@ -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;