Commit 97b0b1ad58fab9f71b1a6bc056a09af6065ec3bc

Authored by Markus Elfring
Committed by Linus Torvalds
1 parent a44f71a9ab

ipc/mqueue.c: delete an unnecessary check before the macro call dev_kfree_skb()

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/07477187-63e5-cc80-34c1-32dd16b38e12@web.de
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1333,7 +1333,7 @@
1333 1333 out:
1334 1334 if (sock)
1335 1335 netlink_detachskb(sock, nc);
1336   - else if (nc)
  1336 + else
1337 1337 dev_kfree_skb(nc);
1338 1338  
1339 1339 return ret;