From: Michael Chan Date: Tue, 8 Jun 2010 07:21:30 +0000 (+0000) Subject: bnx2: Fix compiler warning in bnx2_disable_forced_2g5(). X-Git-Tag: v2.6.36-rc1~571^2~605 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd6890c5987cd7115147e1dd2c10d729afabb08;p=pandora-kernel.git bnx2: Fix compiler warning in bnx2_disable_forced_2g5(). drivers/net/bnx2.c: In function 'bnx2_disable_forced_2g5': drivers/net/bnx2.c:1489: warning: 'bmcr' may be used uninitialized in this function We fix it by checking return values from all bnx2_read_phy() and proceeding to do read-modify-write only if the read operation is successful. The related bnx2_enable_forced_2g5() is also fixed the same way. Reported-by: Prarit Bhargava Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed