diff options
| author | Michael Chan <[email protected]> | 2010-06-08 07:21:30 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-06-11 18:37:07 -0700 |
| commit | cbd6890c5987cd7115147e1dd2c10d729afabb08 (patch) | |
| tree | 074d6e8fcb69fdc2d5a2d07d7a284c76f08b8771 /tools/perf/scripts/python | |
| parent | fc0ba8e87189b02683177116932fa580ab97b7ff (diff) | |
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 <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions