From: Mark Einon Date: Wed, 24 Sep 2014 08:54:41 +0000 (+0100) Subject: staging: et131x: Remove unnecessary OOM message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=177e882ee8d4ecb8beccbf6004e169aa2c86bb2b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: et131x: Remove unnecessary OOM message Reported-by: Joe Perches Signed-off-by: Mark Einon Signed-off-by: Greg Kroah-Hartman --- 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;