]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit8c1f454625743d60763a23c58fa65681d3c98b6f
tree98a4a7824818469c17d1a09573c3a63d4f3d4e3a
parent1c755ffa4fa3e2d4112cadd30142344789ad2fd2
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