Merge tag 'armsoc-arm64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[firefly-linux-kernel-4.4.55.git] / net / ipv4 / inet_fragment.c
index e7920352646aed0a0680557babecfb586283ce92..5e346a082e5ff05b58cfebb64917ee26001d809d 100644 (file)
@@ -385,7 +385,7 @@ static struct inet_frag_queue *inet_frag_alloc(struct netns_frags *nf,
        }
 
        q = kmem_cache_zalloc(f->frags_cachep, GFP_ATOMIC);
-       if (q == NULL)
+       if (!q)
                return NULL;
 
        q->net = nf;
@@ -406,7 +406,7 @@ static struct inet_frag_queue *inet_frag_create(struct netns_frags *nf,
        struct inet_frag_queue *q;
 
        q = inet_frag_alloc(nf, f, arg);
-       if (q == NULL)
+       if (!q)
                return NULL;
 
        return inet_frag_intern(nf, q, f, arg);