From: Wei Yongjun Date: Wed, 25 Feb 2009 00:14:27 +0000 (+0000) Subject: irda: remove some pointless conditionals before kfree_skb() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=875b48297b8ab2f402680821da47d23bd6bddc55;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git irda: remove some pointless conditionals before kfree_skb() Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c index c23d211758ae..803c0be3fc7e 100644 --- a/drivers/net/irda/sir_dev.c +++ b/drivers/net/irda/sir_dev.c @@ -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;