瀏覽代碼

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>
Mark Einon 11 年之前
父節點
當前提交
177e882ee8
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/staging/et131x/et131x.c

+ 1 - 3
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;