diff options
Diffstat (limited to 'drivers/net/ethernet/smsc/smsc9420.c')
-rw-r--r-- | drivers/net/ethernet/smsc/smsc9420.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c index d457fa2d7509..ffa5c4ad1210 100644 --- a/drivers/net/ethernet/smsc/smsc9420.c +++ b/drivers/net/ethernet/smsc/smsc9420.c | |||
@@ -848,10 +848,8 @@ static int smsc9420_alloc_rx_buffer(struct smsc9420_pdata *pd, int index) | |||
848 | BUG_ON(pd->rx_buffers[index].skb); | 848 | BUG_ON(pd->rx_buffers[index].skb); |
849 | BUG_ON(pd->rx_buffers[index].mapping); | 849 | BUG_ON(pd->rx_buffers[index].mapping); |
850 | 850 | ||
851 | if (unlikely(!skb)) { | 851 | if (unlikely(!skb)) |
852 | smsc_warn(RX_ERR, "Failed to allocate new skb!"); | ||
853 | return -ENOMEM; | 852 | return -ENOMEM; |
854 | } | ||
855 | 853 | ||
856 | mapping = pci_map_single(pd->pdev, skb_tail_pointer(skb), | 854 | mapping = pci_map_single(pd->pdev, skb_tail_pointer(skb), |
857 | PKT_BUF_SZ, PCI_DMA_FROMDEVICE); | 855 | PKT_BUF_SZ, PCI_DMA_FROMDEVICE); |