tg3: Fix NVRAM selftest
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 9 Mar 2011 16:58:20 +0000 (16:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2011 09:56:11 +0000 (01:56 -0800)
commit01c3a3920f9f78866420b2004602944fca45083a
treed7b8a9106ee61835510b09ce66b3e705df7df487
parentbb18bb942a31411954021ad036ca7bace642c3c0
tg3: Fix NVRAM selftest

The tg3 NVRAM selftest actually fails when validating the checksum of
the legacy NVRAM format.  However, the test still reported success
because the last update of the return code was a success from the NVRAM
reads.  This patch fixes the code so that the error return code defaults
to a failure status.  Then the patch fixes the reason why the checsum
validation failed.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c