Skip to content

Commit

Permalink
8139cp: Replace WARN_ONCE with netdev_WARN_ONCE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gal Pressman authored and David S. Miller committed Jan 9, 2018
1 parent 37ed41c commit 9d0b967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/realtek/8139cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9d0b967

Please sign in to comment.