net/enic: fix uninitialized variable
authorJohn Daley <johndale@cisco.com>
Wed, 18 Apr 2018 00:00:20 +0000 (17:00 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 14:54:56 +0000 (15:54 +0100)
commit05e8568269a01b4aa120fe558e93c40e97572895
tree476d766d51bf2e315b2a18dc05091fa008164e95
parentc77875fbb8004c22e9910338f93b7be3e29ab9f9
net/enic: fix uninitialized variable

A local variable was used without initialization and triggered a
coverity issue.

Is is fixed here, but there is no ill effect of not initializing
the variable in this case. 'rxq_interrupt_offset' is irrelevant
if 'rxq_interrupt_enable' is not set (the condition caught by
coverity).

Coverity issue: 268314
Fixes: fc2c8c0668fd ("net/enic: use Tx completion index instead of messages")
Cc: stable@dpdk.org
Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/enic_main.c