Thread (1354 messages) 1354 messages, 168 authors, 2017-04-12

Re: [PATCH] Bluetooth-cmtp: Delete an unnecessary check before the function call "kfree_skb"

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2015-11-15 00:31:12
Also in: linux-bluetooth, lkml, netdev

Hi Markus,
The kfree_skb() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <redacted>
---
net/bluetooth/cmtp/core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
patch has been applied to bluetooth-next tree.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help