Skip to content

Commit

Permalink
net/cxgb3: remove undefined operations
Browse files Browse the repository at this point in the history
Modifying an object twice without an intervening sequence point is
undefined.

Signed-off-by: Andreas Schwab <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
andreas-schwab authored and davem330 committed Sep 14, 2010
1 parent 1570475 commit 70ce679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgb3/t3_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3683,7 +3683,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);
}

Expand Down

0 comments on commit 70ce679

Please sign in to comment.