From: Huisong Li Date: Wed, 1 Jun 2022 03:52:42 +0000 (+0800) Subject: net/hns3: remove redundant parentheses X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=56f8be38712d839135bde690dae4239e21b2ca73;p=dpdk.git net/hns3: remove redundant parentheses Remove redundant parentheses. Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index 1c9648bd52..4cba4fd13e 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -167,7 +167,7 @@ hns3_fake_rx_queue_release(struct hns3_rx_queue *queue) } /* free fake rx queue arrays */ - if (idx == (hw->fkq_data.nb_fake_rx_queues - 1)) { + if (idx == hw->fkq_data.nb_fake_rx_queues - 1) { hw->fkq_data.nb_fake_rx_queues = 0; rte_free(hw->fkq_data.rx_queues); hw->fkq_data.rx_queues = NULL; @@ -194,7 +194,7 @@ hns3_fake_tx_queue_release(struct hns3_tx_queue *queue) } /* free fake tx queue arrays */ - if (idx == (hw->fkq_data.nb_fake_tx_queues - 1)) { + if (idx == hw->fkq_data.nb_fake_tx_queues - 1) { hw->fkq_data.nb_fake_tx_queues = 0; rte_free(hw->fkq_data.tx_queues); hw->fkq_data.tx_queues = NULL;