diff options
author | David Sterba <[email protected]> | 2010-12-29 03:40:31 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2010-12-31 12:31:01 -0800 |
commit | 824f5f38d3005c346a043dedcfe8b048b699b81a (patch) | |
tree | 81d9f10bf6dabd5b2a439bf9805892d5d056127b /net/unix/sysctl_net_unix.c | |
parent | f7e4c9775ea648deed4a8193951e50d0c7706173 (diff) |
tg3: fix return value check in tg3_read_vpd()
Besides -ETIMEDOUT and -EINTR, pci_read_vpd may return other error
values like -ENODEV or -EINVAL which are ignored due to the buggy
check, but the data are not read from VPD anyway and this is checked
subsequently with at most 3 needless loop iterations. This does not
show up as a runtime bug.
CC: Matt Carlson <[email protected]>
CC: Michael Chan <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions