net/octeontx: fix uninitialized variable in port open

Coverity issue: 195045
Fixes: f18b146c49 ("net/octeontx: create ethdev ports")
Cc: stable@dpdk.org

Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
This commit is contained in:
Santosh Shukla 2018-02-20 22:44:16 +05:30 committed by Ferruh Yigit
parent a98122ef66
commit a371fd7903

View File

@ -122,7 +122,7 @@ octeontx_port_open(struct octeontx_nic *nic)
int res;
res = 0;
memset(&bgx_port_conf, 0x0, sizeof(bgx_port_conf));
PMD_INIT_FUNC_TRACE();
res = octeontx_bgx_port_open(nic->port_id, &bgx_port_conf);