Skip to content

Commit 97b0b1a

Browse files
elfringtorvalds
authored andcommitted
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>
1 parent a44f71a commit 97b0b1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ipc/mqueue.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ static int do_mq_notify(mqd_t mqdes, const struct sigevent *notification)
13331333
out:
13341334
if (sock)
13351335
netlink_detachskb(sock, nc);
1336-
else if (nc)
1336+
else
13371337
dev_kfree_skb(nc);
13381338

13391339
return ret;

0 commit comments

Comments
 (0)