diff options
author | Wentao Cai <etsai042@gmail.com> | 2019-03-12 02:35:11 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-18 07:05:23 +0100 |
commit | 796618673fcd8053bfbb74fd6b8dd6fe95001ca6 (patch) | |
tree | 55c3c114778c48f484da1fbe340a8c50a9c46fcd /drivers/staging/netlogic | |
parent | e8ca82a1348b07d64613d6af1303edf5097b476a (diff) |
staging: netlogic: Remove unnecessary 'out of memory' message
Remove unnecessary 'out of memory' message to silence checkpatch.pl
warning:
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: Wentao Cai <etsai042@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/netlogic')
-rw-r--r-- | drivers/staging/netlogic/xlr_net.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index 8554fcf4321b..10f14a5cf490 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c @@ -185,10 +185,8 @@ static int xlr_net_fill_rx_ring(struct net_device *ndev) for (i = 0; i < MAX_FRIN_SPILL / 4; i++) { skb_data = xlr_alloc_skb(); - if (!skb_data) { - netdev_err(ndev, "SKB allocation failed\n"); + if (!skb_data) return -ENOMEM; - } send_to_rfr_fifo(priv, skb_data); } netdev_info(ndev, "Rx ring setup done\n"); |