mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
drivers/net: Remove pointless checks for NULL prior to calling kfree()
This commit is contained in:
parent
7380a78a97
commit
b4558ea93d
32 changed files with 90 additions and 174 deletions
|
@ -490,8 +490,7 @@ static void sirdev_free_buffers(struct sir_dev *dev)
|
|||
{
|
||||
if (dev->rx_buff.skb)
|
||||
kfree_skb(dev->rx_buff.skb);
|
||||
if (dev->tx_buff.head)
|
||||
kfree(dev->tx_buff.head);
|
||||
kfree(dev->tx_buff.head);
|
||||
dev->rx_buff.head = dev->tx_buff.head = NULL;
|
||||
dev->rx_buff.skb = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue