net/hns3: remove redundant parentheses
Remove redundant parentheses. Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
This commit is contained in:
parent
ae5f21f287
commit
56f8be3871
@ -167,7 +167,7 @@ hns3_fake_rx_queue_release(struct hns3_rx_queue *queue)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* free fake rx queue arrays */
|
/* 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;
|
hw->fkq_data.nb_fake_rx_queues = 0;
|
||||||
rte_free(hw->fkq_data.rx_queues);
|
rte_free(hw->fkq_data.rx_queues);
|
||||||
hw->fkq_data.rx_queues = NULL;
|
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 */
|
/* 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;
|
hw->fkq_data.nb_fake_tx_queues = 0;
|
||||||
rte_free(hw->fkq_data.tx_queues);
|
rte_free(hw->fkq_data.tx_queues);
|
||||||
hw->fkq_data.tx_queues = NULL;
|
hw->fkq_data.tx_queues = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user