From: David Sterba Date: Wed, 29 Dec 2010 03:40:31 +0000 (+0000) Subject: tg3: fix return value check in tg3_read_vpd() X-Git-Tag: v2.6.37~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=824f5f38d3005c346a043dedcfe8b048b699b81a;p=pandora-kernel.git 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 CC: Michael Chan Signed-off-by: David Sterba Signed-off-by: David S. Miller --- Reading git-diff-tree failed