]> Git Repo - linux.git/commitdiff
ipc/mqueue.c: delete an unnecessary check before the macro call dev_kfree_skb()
authorMarkus Elfring <[email protected]>
Wed, 25 Sep 2019 23:48:14 +0000 (16:48 -0700)
committerLinus Torvalds <[email protected]>
Thu, 26 Sep 2019 00:51:41 +0000 (17:51 -0700)
dev_kfree_skb() input parameter validation, thus the test around the call
is not needed.

This issue was detected by using the Coccinelle software.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Markus Elfring <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Manfred Spraul <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
ipc/mqueue.c

index 7c15729d9d25a36711ae2d70db206f5f633e64a1..b02eb842b42e8e9579c010dcf06bc9f7c1a84044 100644 (file)
@@ -1333,7 +1333,7 @@ out_fput:
 out:
        if (sock)
                netlink_detachskb(sock, nc);
-       else if (nc)
+       else
                dev_kfree_skb(nc);
 
        return ret;
This page took 0.056158 seconds and 4 git commands to generate.