[dpdk-dev] [PATCH 8/8] examples/l2fwd: remove null initialisation
Anoob Joseph
anoob.joseph at caviumnetworks.com
Mon Oct 8 12:41:25 CEST 2018
Do not initialise statis/globals to NULL.
Signed-off-by: Anoob Joseph <anoob.joseph at caviumnetworks.com>
---
examples/l2fwd/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c
index efb0b59..1a1960c 100644
--- a/examples/l2fwd/main.c
+++ b/examples/l2fwd/main.c
@@ -62,7 +62,7 @@ static uint16_t nb_txd = RTE_TEST_TX_DESC_DEFAULT;
static struct ether_addr l2fwd_ports_eth_addr[RTE_MAX_ETHPORTS];
/* mask of enabled ports */
-static uint32_t l2fwd_enabled_port_mask = 0;
+static uint32_t l2fwd_enabled_port_mask;
/* list of enabled ports */
static uint32_t l2fwd_dst_ports[RTE_MAX_ETHPORTS];
@@ -88,7 +88,7 @@ static struct rte_eth_conf port_conf = {
},
};
-struct rte_mempool * l2fwd_pktmbuf_pool = NULL;
+struct rte_mempool *l2fwd_pktmbuf_pool;
/* Per-port statistics struct */
struct l2fwd_port_statistics {
--
2.7.4
More information about the dev
mailing list