]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
netxen: do_rom_fast_write error handling
authorStephen Hemminger <shemminger@linux-foundation.org>
Mon, 26 Feb 2007 22:51:56 +0000 (14:51 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 27 Feb 2007 09:38:33 +0000 (04:38 -0500)
commitf8dfdd5cab482a2ce4a8e2375e1512aa4829c653
treed2c409de5c9cf830aa22793f162beb5612371df2
parent36c843d5e347ec71ec579a477c941538a03b8cf3
netxen: do_rom_fast_write error handling

Compiler warning spots real error!

The function do_rom_fast_read called in do_rom_fast_write can fail
and leave data1 unset. This causes a compile warning.
The correct thing is to propagate the error out.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/netxen/netxen_nic_init.c