Commit e345d5ef6d476cc236f64d90d9528143a70745c8

Authored by Al Viro
Committed by Jeff Garzik
1 parent ce6623c3d8

[PATCH] lvalues abuse in lance

result of comma operator is not an lvalue

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/net/atarilance.c
... ... @@ -235,7 +235,7 @@
235 235 #define MEM lp->mem
236 236 #define DREG IO->data
237 237 #define AREG IO->addr
238   -#define REGA(a) ( AREG = (a), DREG )
  238 +#define REGA(a) (*( AREG = (a), &DREG ))
239 239  
240 240 /* Definitions for packet buffer access: */
241 241 #define PKT_BUF_SZ 1544
drivers/net/sun3lance.c
... ... @@ -162,7 +162,7 @@
162 162 #define MEM lp->mem
163 163 #define DREG lp->iobase[0]
164 164 #define AREG lp->iobase[1]
165   -#define REGA(a) ( AREG = (a), DREG )
  165 +#define REGA(a) (*( AREG = (a), &DREG ))
166 166  
167 167 /* Definitions for the Lance */
168 168