mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 22:34:48 +00:00
8139cp: Replace WARN_ONCE with netdev_WARN_ONCE
Use the more appropriate netdev_WARN_ONCE instead of WARN_ONCE macro. Signed-off-by: Gal Pressman <galp@mellanox.com> Reviewed-by: Saeed Mahameed <saeedm@mellanox.com> Cc: Realtek linux nic maintainers <nic_swsd@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
37ed41c423
commit
9d0b967f0e
@ -748,8 +748,8 @@ static netdev_tx_t cp_start_xmit (struct sk_buff *skb,
|
||||
mss = skb_shinfo(skb)->gso_size;
|
||||
|
||||
if (mss > MSSMask) {
|
||||
WARN_ONCE(1, "Net bug: GSO size %d too large for 8139CP\n",
|
||||
mss);
|
||||
netdev_WARN_ONCE(dev, "Net bug: GSO size %d too large for 8139CP\n",
|
||||
mss);
|
||||
goto out_dma_error;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user