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

From: Markus Elfring
Date: Wed Sep 04 2019 - 07:56:15 EST


> 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/
https://lore.kernel.org/r/5647A77E.6040501@xxxxxxxxxxxxxxxxxxxxx/

https://lkml.org/lkml/2015/11/24/433
https://lore.kernel.org/r/56546951.9080101@xxxxxxxx/

Regards,
Markus