Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: ethernet: ave: Remove unnecessary 'out of memory' message

Follow the warning from checkpatch.pl and remove 'out of memory' message.

WARNING: Possible unnecessary 'out of memory' message
#590: FILE: drivers/net/ethernet/socionext/sni_ave.c:590:
+ if (!skb) {
+ netdev_err(ndev, "can't allocate skb for Rx\n");

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260109103915.2764380-1-hayashi.kunihiko@socionext.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Kunihiko Hayashi and committed by
Jakub Kicinski
11ed2195 9da9633f

+1 -3
+1 -3
drivers/net/ethernet/socionext/sni_ave.c
··· 586 586 skb = priv->rx.desc[entry].skbs; 587 587 if (!skb) { 588 588 skb = netdev_alloc_skb(ndev, AVE_MAX_ETHFRAME); 589 - if (!skb) { 590 - netdev_err(ndev, "can't allocate skb for Rx\n"); 589 + if (!skb) 591 590 return -ENOMEM; 592 - } 593 591 skb->data += AVE_FRAME_HEADROOM; 594 592 skb->tail += AVE_FRAME_HEADROOM; 595 593 }