Re: net: hsr: remove a redundant null check before kfree_skb

2019-09-04 Thread zhong jiang
On 2019/9/4 19:55, Markus Elfring wrote: >> kfree_skb has taken the null pointer into account. > I suggest to take another look also at information around > a similar update suggestion. > > net-hsr: Delete unnecessary checks before the function call "kfree_skb" >

Re: net: hsr: remove a redundant null check before kfree_skb

2019-09-04 Thread Markus Elfring
> kfree_skb has taken the null pointer into account. I suggest to take another look also at information around a similar update suggestion. net-hsr: Delete unnecessary checks before the function call "kfree_skb" https://lkml.org/lkml/2015/11/14/120 https://lore.kernel.org/patchwork/patch/617878/

[PATCH] net: hsr: remove an redundant null check before kfree_skb

2019-09-03 Thread zhong jiang
kfree_skb has taken the null pointer into account. Hence just remove the null check before kfree_skb. Signed-off-by: zhong jiang --- net/hsr/hsr_forward.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c index