Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e65c3e1d authored by Gal Pressman's avatar Gal Pressman Committed by David S. Miller
Browse files

e1000: Replace WARN_ONCE with netdev_WARN_ONCE



Use the more appropriate netdev_WARN_ONCE instead of WARN_ONCE macro.

Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
Reviewed-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cd4a87df
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1838,7 +1838,7 @@ static void e1000_get_ethtool_stats(struct net_device *netdev,
			p = (char *)adapter + stat->stat_offset;
			break;
		default:
			WARN_ONCE(1, "Invalid E1000 stat type: %u index %d\n",
			netdev_WARN_ONCE(netdev, "Invalid E1000 stat type: %u index %d\n",
					 stat->type, i);
			continue;
		}