projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1570475
)
net/cxgb3: remove undefined operations
author
Andreas Schwab
<schwab@linux-m68k.org>
Sat, 11 Sep 2010 01:12:34 +0000
(
01:12
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Sep 2010 03:02:51 +0000
(20:02 -0700)
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>
drivers/net/cxgb3/t3_hw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/cxgb3/t3_hw.c
b/drivers/net/cxgb3/t3_hw.c
index d307c9de59fbda00e425138355574a44ffc6bbdf..421d5589cecdb75400669b7252df728cc1213799 100644
(file)
--- 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,
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);
}