From: Wei Yongjun Date: Wed, 25 Feb 2009 00:22:41 +0000 (+0000) Subject: wan: remove some pointless conditionals before kfree_skb() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fbbfb986a8a3dfb42cd4cae7b1c7f822792823af;p=openwrt%2Fstaging%2Fblogic.git wan: remove some pointless conditionals before kfree_skb() Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun Acked-by: Jan "Yenya" Kasprzak Signed-off-by: David S. Miller --- diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 0d7ba117ef60..d276d72ee3b7 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -731,8 +731,7 @@ static char *cosa_net_setup_rx(struct channel_data *chan, int size) * We can safely fall back to non-dma-able memory, because we have * the cosa->bouncebuf pre-allocated. */ - if (chan->rx_skb) - kfree_skb(chan->rx_skb); + kfree_skb(chan->rx_skb); chan->rx_skb = dev_alloc_skb(size); if (chan->rx_skb == NULL) { printk(KERN_NOTICE "%s: Memory squeeze, dropping packet\n",