Commit fbbfb986 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

wan: remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: default avatarJan "Yenya" Kasprzak <kas@fi.muni.cz>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c71a2699
...@@ -731,7 +731,6 @@ static char *cosa_net_setup_rx(struct channel_data *chan, int size) ...@@ -731,7 +731,6 @@ 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 * We can safely fall back to non-dma-able memory, because we have
* the cosa->bouncebuf pre-allocated. * 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); chan->rx_skb = dev_alloc_skb(size);
if (chan->rx_skb == NULL) { if (chan->rx_skb == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment