]> git.droids-corp.org - dpdk.git/commitdiff
net/hns3: remove redundant parentheses
authorHuisong Li <lihuisong@huawei.com>
Wed, 1 Jun 2022 03:52:42 +0000 (11:52 +0800)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Thu, 9 Jun 2022 08:56:55 +0000 (10:56 +0200)
Remove redundant parentheses.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_rxtx.c

index 1c9648bd520c0aaba5361147621a8f439c547205..4cba4fd13e575ded545cf245e49cee429b758450 100644 (file)
@@ -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;