net/hns3: fix debug build
authorThomas Monjalon <thomas@monjalon.net>
Fri, 7 May 2021 12:14:13 +0000 (14:14 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 7 May 2021 13:19:54 +0000 (15:19 +0200)
commit0d655820e048f702894397973f42de30fff73f76
treee4d19828cbb0809de8c24acb0aa722254aad2b5e
parentc3946acf2295a38c1104c722f15268bc65199b72
net/hns3: fix debug build

The variable "dev" is not used in hns3_get_tx_prep_needed()
in the case of RTE_LIBRTE_ETHDEV_DEBUG:
drivers/net/hns3/hns3_rxtx.c:4213:45: error: unused parameter ‘dev’

Fixes: d7ec2c076579 ("net/hns3: select Tx prepare based on Tx offload")
Cc: stable@dpdk.org
Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: David Marchand <david.marchand@redhat.com>
drivers/net/hns3/hns3_rxtx.c