app/pdump: fix build with clang
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 26 Jan 2020 01:04:38 +0000 (17:04 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 6 Feb 2020 08:20:56 +0000 (09:20 +0100)
Clang checks indentation and found incorrect indentation in pdump.

app/pdump/main.c:598:3: error: misleading indentation;
statement is not part of the previous 'if'
[-Werror,-Wmisleading-indentation]

Fixes: caa7028276b8 ("app/pdump: add tool for packet capturing")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
app/pdump/main.c

index 903d02f..d05a023 100644 (file)
@@ -595,7 +595,7 @@ configure_vdev(uint16_t port_id)
        if (ret != 0)
                rte_exit(EXIT_FAILURE, "dev config failed\n");
 
-        for (q = 0; q < txRings; q++) {
+       for (q = 0; q < txRings; q++) {
                ret = rte_eth_tx_queue_setup(port_id, q, TX_DESC_PER_QUEUE,
                                rte_eth_dev_socket_id(port_id), NULL);
                if (ret < 0)