]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde09ef67dc8caeee92244f495581189119dc6e44
tree1af9c20ef63043f66155550ba48e8bd651c347d8
parent9ee3492c397aef756813429d73eeb32c9329cb3b
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