linux_dsm_epyc7002/drivers/net/ethernet/qlogic/netxen
Colin Ian King 0fe20fafd1 netxen_nic: set rcode to the return status from the call to netxen_issue_cmd
Currently rcode is being initialized to NX_RCODE_SUCCESS and later it
is checked to see if it is not NX_RCODE_SUCCESS which is never true. It
appears that there is an unintentional missing assignment of rcode from
the return of the call to netxen_issue_cmd() that was dropped in
an earlier fix, so add it in.

Detected by CoverityScan, CID#401900 ("Logically dead code")

Fixes: 2dcd5d95ad ("netxen_nic: fix cdrp race condition")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-11 12:16:04 -04:00
..
Makefile ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
netxen_nic_ctx.c netxen_nic: set rcode to the return status from the call to netxen_issue_cmd 2017-05-11 12:16:04 -04:00
netxen_nic_ethtool.c net: qlogic: netxen: use new api ethtool_{get|set}_link_ksettings 2017-02-17 14:06:41 -05:00
netxen_nic_hdr.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
netxen_nic_hw.c ethernet: use net core MTU range checking in more drivers 2016-10-20 14:51:08 -04:00
netxen_nic_hw.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
netxen_nic_init.c netxen_nic: remove redundant check if retries is zero 2017-03-15 15:04:08 -07:00
netxen_nic_main.c qlogic: netxen: constify bin_attribute structures 2017-02-22 15:39:09 -05:00
netxen_nic.h netxen_nic: Fix trivial typos in comments 2015-03-01 13:40:22 -05:00