staging: netlogic: Remove unnecessary 'out of memory' message
authorWentao Cai <etsai042@gmail.com>
Tue, 12 Mar 2019 09:35:11 +0000 (02:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:23 +0000 (07:05 +0100)
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>
drivers/staging/netlogic/xlr_net.c

index 8554fcf..10f14a5 100644 (file)
@@ -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");