diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2010-09-10 21:12:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-13 23:02:51 -0400 |
commit | 70ce679be6f7fd8ff24d4b7007e2c0e430587945 (patch) | |
tree | 26fd103a56f8e6cfb478c8841596eb7d61bb7b40 /drivers/net/cxgb3 | |
parent | 1570475a477b46cb16b2a0dd73c06974c8d2b550 (diff) |
net/cxgb3: remove undefined operations
Modifying an object twice without an intervening sequence point is
undefined.
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/t3_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c index d307c9de59fb..421d5589cecd 100644 --- a/drivers/net/cxgb3/t3_hw.c +++ b/drivers/net/cxgb3/t3_hw.c | |||
@@ -3683,7 +3683,7 @@ static void mc7_prep(struct adapter *adapter, struct mc7 *mc7, | |||
3683 | mc7->name = name; | 3683 | mc7->name = name; |
3684 | mc7->offset = base_addr - MC7_PMRX_BASE_ADDR; | 3684 | mc7->offset = base_addr - MC7_PMRX_BASE_ADDR; |
3685 | cfg = t3_read_reg(adapter, mc7->offset + A_MC7_CFG); | 3685 | cfg = t3_read_reg(adapter, mc7->offset + A_MC7_CFG); |
3686 | mc7->size = mc7->size = G_DEN(cfg) == M_DEN ? 0 : mc7_calc_size(cfg); | 3686 | mc7->size = G_DEN(cfg) == M_DEN ? 0 : mc7_calc_size(cfg); |
3687 | mc7->width = G_WIDTH(cfg); | 3687 | mc7->width = G_WIDTH(cfg); |
3688 | } | 3688 | } |
3689 | 3689 | ||