diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-03-02 02:59:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-03 01:32:36 -0500 |
commit | 98589bb1099732847c5deedc213c17c50dd1bc75 (patch) | |
tree | a26e0b64b5debd746b02526dde83877bfde57314 | |
parent | a8c9a53c22441efcd57ad7955231b2804696b133 (diff) |
bnx2x: Remove redundant smb_mb on unload
As noted by Ben Hutchings <bhutchings@solarflare.com>, these smb_mb are not
needed
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bnx2x_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 942717526d6a..5954bed60652 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -7210,7 +7210,6 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) | |||
7210 | struct bnx2x_fastpath *fp = &bp->fp[i]; | 7210 | struct bnx2x_fastpath *fp = &bp->fp[i]; |
7211 | 7211 | ||
7212 | cnt = 1000; | 7212 | cnt = 1000; |
7213 | smp_mb(); | ||
7214 | while (bnx2x_has_tx_work_unload(fp)) { | 7213 | while (bnx2x_has_tx_work_unload(fp)) { |
7215 | 7214 | ||
7216 | bnx2x_tx_int(fp, 1000); | 7215 | bnx2x_tx_int(fp, 1000); |
@@ -7226,7 +7225,6 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) | |||
7226 | } | 7225 | } |
7227 | cnt--; | 7226 | cnt--; |
7228 | msleep(1); | 7227 | msleep(1); |
7229 | smp_mb(); | ||
7230 | } | 7228 | } |
7231 | } | 7229 | } |
7232 | /* Give HW time to discard old tx messages */ | 7230 | /* Give HW time to discard old tx messages */ |