mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-14 09:25:12 +00:00
irda: remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d46604e178
commit
875b48297b
@ -780,7 +780,6 @@ static int sirdev_alloc_buffers(struct sir_dev *dev)
|
||||
|
||||
static void sirdev_free_buffers(struct sir_dev *dev)
|
||||
{
|
||||
if (dev->rx_buff.skb)
|
||||
kfree_skb(dev->rx_buff.skb);
|
||||
kfree(dev->tx_buff.head);
|
||||
dev->rx_buff.head = dev->tx_buff.head = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user