All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/cxgb3: remove undefined operations
@ 2010-09-11 11:12 Andreas Schwab
  2010-09-14  3:03 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2010-09-11 11:12 UTC (permalink / raw)
  To: Divy Le Ray; +Cc: netdev

Modifying an object twice without an intervening sequence point is
undefined.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
---
 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 427c451..997b14b 100644
--- a/drivers/net/cxgb3/t3_hw.c
+++ b/drivers/net/cxgb3/t3_hw.c
@@ -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);
 }
 
-- 
1.7.2.3

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/cxgb3: remove undefined operations
  2010-09-11 11:12 [PATCH] net/cxgb3: remove undefined operations Andreas Schwab
@ 2010-09-14  3:03 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-09-14  3:03 UTC (permalink / raw)
  To: schwab; +Cc: divy, netdev

From: Andreas Schwab <schwab@linux-m68k.org>
Date: Sat, 11 Sep 2010 13:12:34 +0200

> Modifying an object twice without an intervening sequence point is
> undefined.
> 
> Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-14  3:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-11 11:12 [PATCH] net/cxgb3: remove undefined operations Andreas Schwab
2010-09-14  3:03 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.