net/octeontx: fix uninitialized speed variable
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 5 Apr 2018 15:12:28 +0000 (08:12 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:40:21 +0000 (00:40 +0200)
commit3a4b87c897d6e746ce53bcbe70a35e44654c7434
tree0cf95366c9d81dc8c9c0d4be4051d70d84bce2d9
parentecc3fa6d3ef54ca7d4dea6d22d1d45693eea4cf1
net/octeontx: fix uninitialized speed variable

This is fix for Coverity Defect 268319 about uninitialized speed
in an error case. Also drop unnecessary assignment.

Coverity issue: 268319
Fixes: 4fac7c0a147e ("net/octeontx: add link update")
CC: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/octeontx/octeontx_ethdev.c