Re: [PATCH] net-hsr: Delete unnecessary checks before the function call "kfree_skb"

2015-11-24 Thread Arvid Brodin
On 2015-11-14 22:28, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Nov 2015 22:23:48 +0100 > > The kfree_skb() function tests whether its argument is NULL and then > returns immediately. Thus the test around the calls is not needed. > > diff --git a/net/hsr/hsr_forward.c

Re: [PATCH] net-hsr: Delete unnecessary checks before the function call "kfree_skb"

2015-11-24 Thread Arvid Brodin
On 2015-11-14 22:28, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 14 Nov 2015 22:23:48 +0100 > > The kfree_skb() function tests whether its argument is NULL and then > returns immediately. Thus the test around the calls is not needed. > > diff

[PATCH] net-hsr: Delete unnecessary checks before the function call "kfree_skb"

2015-11-14 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 14 Nov 2015 22:23:48 +0100 The kfree_skb() function tests whether its argument is NULL and then returns immediately. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] net-hsr: Delete unnecessary checks before the function call "kfree_skb"

2015-11-14 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 14 Nov 2015 22:23:48 +0100 The kfree_skb() function tests whether its argument is NULL and then returns immediately. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software.