summaryrefslogtreecommitdiff
path: root/drivers/staging/et131x/et131x.c
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2014-09-24 09:54:41 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-28 21:58:12 -0400
commit177e882ee8d4ecb8beccbf6004e169aa2c86bb2b (patch)
tree69310cbd87e341f60b16c88fc5f27d80cd1e7906 /drivers/staging/et131x/et131x.c
parentf4aae620e3252b587500b6e4ff60971ffb240536 (diff)
staging: et131x: Remove unnecessary OOM message
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>
Diffstat (limited to 'drivers/staging/et131x/et131x.c')
-rw-r--r--drivers/staging/et131x/et131x.c4
1 files changed, 1 insertions, 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;