mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
nfp: don't use netdev_warn() before netdev is registered
Fix warning which was using netdev_warn() instead of dev_warn() to early. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7d2da60382
commit
87232d9615
1 changed files with 3 additions and 3 deletions
|
@ -336,9 +336,9 @@ nfp_net_irqs_assign(struct nfp_net *nn, struct msix_entry *irq_entries,
|
|||
|
||||
if (dp->num_rx_rings > dp->num_r_vecs ||
|
||||
dp->num_tx_rings > dp->num_r_vecs)
|
||||
nn_warn(nn, "More rings (%d,%d) than vectors (%d).\n",
|
||||
dp->num_rx_rings, dp->num_tx_rings,
|
||||
dp->num_r_vecs);
|
||||
dev_warn(nn->dp.dev, "More rings (%d,%d) than vectors (%d).\n",
|
||||
dp->num_rx_rings, dp->num_tx_rings,
|
||||
dp->num_r_vecs);
|
||||
|
||||
dp->num_rx_rings = min(dp->num_r_vecs, dp->num_rx_rings);
|
||||
dp->num_tx_rings = min(dp->num_r_vecs, dp->num_tx_rings);
|
||||
|
|
Loading…
Reference in a new issue