Skip to content

Commit

Permalink
irda: remove some pointless conditionals before kfree_skb()
Browse files Browse the repository at this point in the history
Remove some pointless conditionals before kfree_skb().

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Wei Yongjun authored and davem330 committed Feb 27, 2009
1 parent d46604e commit 875b482
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/irda/sir_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,7 @@ 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_skb(dev->rx_buff.skb);
kfree(dev->tx_buff.head);
dev->rx_buff.head = dev->tx_buff.head = NULL;
dev->rx_buff.skb = NULL;
Expand Down

0 comments on commit 875b482

Please sign in to comment.