[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1293471094-28976-1-git-send-email-dsterba@suse.cz>
Date: Mon, 27 Dec 2010 18:31:34 +0100
From: David Sterba <dsterba@...e.cz>
To: mcarlson@...adcom.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
David Sterba <dsterba@...e.cz>,
Michael Chan <mchan@...adcom.com>
Subject: [PATCH] tg3: fix return value check in tg3_read_vpd()
CC: Matt Carlson <mcarlson@...adcom.com>
CC: Michael Chan <mchan@...adcom.com>
Signed-off-by: David Sterba <dsterba@...e.cz>
---
drivers/net/tg3.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 30ccbb6..6f97b7b 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -12658,7 +12658,7 @@ static void __devinit tg3_read_vpd(struct tg3 *tp)
cnt = pci_read_vpd(tp->pdev, pos,
TG3_NVM_VPD_LEN - pos,
&vpd_data[pos]);
- if (cnt == -ETIMEDOUT || -EINTR)
+ if (cnt == -ETIMEDOUT || cnt == -EINTR)
cnt = 0;
else if (cnt < 0)
goto out_not_found;
--
1.7.3.4.626.g73e7b
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists