Skip to content

Commit 2b28b71

Browse files
321lipengdavem330
authored andcommitted
net: z85230: remove unnecessary out of memory message
This patch removes unnecessary out of memory message, to fix the following checkpatch.pl warning: "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 00a580d commit 2b28b71

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/net/wan/z85230.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,10 +1531,9 @@ static void z8530_rx_done(struct z8530_channel *c)
15311531
RT_UNLOCK;
15321532

15331533
c->skb2 = dev_alloc_skb(c->mtu);
1534-
if (!c->skb2)
1535-
netdev_warn(c->netdevice, "memory squeeze\n");
1536-
else
1534+
if (c->skb2)
15371535
skb_put(c->skb2, c->mtu);
1536+
15381537
c->netdevice->stats.rx_packets++;
15391538
c->netdevice->stats.rx_bytes += ct;
15401539
}

0 commit comments

Comments
 (0)