mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 22:26:42 +07:00
wan: remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Acked-by: Jan "Yenya" Kasprzak <kas@fi.muni.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c71a2699c5
commit
fbbfb986a8
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user