Commit 97b0b1ad authored by Markus Elfring's avatar Markus Elfring Committed by Linus Torvalds
Browse files

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.


Signed-off-by: default avatarMarkus Elfring <>
Cc: Davidlohr Bueso <>
Cc: Manfred Spraul <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a44f71a9
......@@ -1333,7 +1333,7 @@ out_fput:
if (sock)
netlink_detachskb(sock, nc);
else if (nc)
return ret;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment