]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: fix variable used when DEBUG is defined
authorTom Rix <trix@redhat.com>
Sun, 17 Jan 2021 19:10:44 +0000 (11:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 04:57:48 +0000 (20:57 -0800)
commitff70d67fec9baf4a26ea56d42b7f699a789c9213
tree8443ad66a4588f3804339507e417e7265e0b3a41
parent3ff0767d8c9eb9f4fe708137e68beabae6574998
net: hns: fix variable used when DEBUG is defined

When DEBUG is defined this error occurs

drivers/net/ethernet/hisilicon/hns/hns_enet.c:1505:36: error:
  ‘struct net_device’ has no member named ‘ae_handle’;
  did you mean ‘rx_handler’?
  assert(skb->queue_mapping < ndev->ae_handle->q_num);
                                    ^~~~~~~~~

ae_handle is an element of struct hns_nic_priv, so change
ndev to priv.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20210117191044.533725-1-trix@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_enet.c