]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: netxen_rom_fast_read() doesn't return -1
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 May 2016 13:20:20 +0000 (16:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 May 2016 19:15:32 +0000 (15:15 -0400)
commitd226f21bbb903fd429f1b997168091e871e3a5c2
tree98a4a7824818469c17d1a09573c3a63d4f3d4e3a
parent30706c43eb0df9c40d789238a8d885eceba127e9
netxen: netxen_rom_fast_read() doesn't return -1

The error handling is broken here.  netxen_rom_fast_read() returns zero
on success and -EIO on error.  It never 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_main.c