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>
This commit is contained in:
parent
1570475a47
commit
70ce679be6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user