staging: et131x: Remove unnecessary OOM message
authorMark Einon <mark.einon@gmail.com>
Wed, 24 Sep 2014 08:54:41 +0000 (09:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 01:58:12 +0000 (21:58 -0400)
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c

index 8ae5a76d533cba1a9787c5495df39bb9bcc2637f..cf38cf1324866f918031dfddbf890a78ce435311 100644 (file)
@@ -2422,10 +2422,8 @@ static struct rfd *nic_rx_pkts(struct et131x_adapter *adapter)
        rfd->len = len;
 
        skb = dev_alloc_skb(rfd->len + 2);
-       if (!skb) {
-               dev_err(&adapter->pdev->dev, "Couldn't alloc an SKB for Rx\n");
+       if (!skb)
                return NULL;
-       }
 
        adapter->netdev->stats.rx_bytes += rfd->len;