Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Al Viro and committed by
Jeff Garzik
e345d5ef ce6623c3

+2 -2
+1 -1
drivers/net/atarilance.c
··· 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
+1 -1
drivers/net/sun3lance.c
··· 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