From 177e882ee8d4ecb8beccbf6004e169aa2c86bb2b Mon Sep 17 00:00:00 2001 From: Mark Einon Date: Wed, 24 Sep 2014 09:54:41 +0100 Subject: [PATCH] staging: et131x: Remove unnecessary OOM message Reported-by: Joe Perches Signed-off-by: Mark Einon Signed-off-by: Greg Kroah-Hartman --- drivers/staging/et131x/et131x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 8ae5a76d533c..cf38cf132486 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c @@ -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; -- 2.30.2