netxen: fix error handling in netxen_get_flash_block()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 May 2016 13:18:46 +0000 (16:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 May 2016 19:15:32 +0000 (15:15 -0400)
commit545fea54916af5e88f02346d85301ba0ecc143f3
tree1af9c20ef63043f66155550ba48e8bd651c347d8
parent288928658583a27256c6c295aeccd95a3ddcefce
netxen: fix error handling in netxen_get_flash_block()

My static checker complained that "v" can be used unintialized if
netxen_rom_fast_read() returns -EIO.  That function never actually
returns -1.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c