net/cxgb3: remove undefined operations
Subsystems (2)
PATCH 1/1 net/cxgb3: remove undefined operations
Modifying an object twice without an intervening sequence point is undefined.
Signed-off-by Andreas Schwab <[email protected]>
--- drivers/net/cxgb3/t3_hw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb3/t3_hw.c +1 -1
@@ -3682,7 +3682,7 @@ static void mc7_prep(struct adapter *adapter, struct mc7 *mc7, mc7->name = name; mc7->offset = base_addr -MC7_PMRX_BASE_ADDR ; cfg =t3_read_reg (adapter, mc7->offset +A_MC7_CFG ); - mc7->size = mc7->size =G_DEN (cfg) ==M_DEN ?0 :mc7_calc_size (cfg); + mc7->size =G_DEN (cfg) ==M_DEN ?0 :mc7_calc_size (cfg); mc7->width =G_WIDTH (cfg); }
Signature · 6 lines
1.7.2.3 -- Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
From: Andreas Schwab <[email protected]>
Date: Sat, 11 Sep 2010 13:12:34 +0200
Quoted 4 lines
Modifying an object twice without an intervening sequence point is undefined.
Signed-off-by Andreas Schwab <[email protected]>
Applied.