From: Al Viro Date: Thu, 25 Aug 2005 05:24:21 +0000 (+0100) Subject: [PATCH] lvalues abuse in lance X-Git-Tag: v2.6.14-rc1~527^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e345d5ef6d476cc236f64d90d9528143a70745c8;p=platform%2Fkernel%2Flinux-exynos.git [PATCH] lvalues abuse in lance result of comma operator is not an lvalue Signed-off-by: Al Viro Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/atarilance.c b/drivers/net/atarilance.c index ad01121..e01b6a7 100644 --- a/drivers/net/atarilance.c +++ b/drivers/net/atarilance.c @@ -235,7 +235,7 @@ struct lance_private { #define MEM lp->mem #define DREG IO->data #define AREG IO->addr -#define REGA(a) ( AREG = (a), DREG ) +#define REGA(a) (*( AREG = (a), &DREG )) /* Definitions for packet buffer access: */ #define PKT_BUF_SZ 1544 diff --git a/drivers/net/sun3lance.c b/drivers/net/sun3lance.c index 1f43bbf..5c8fcd4 100644 --- a/drivers/net/sun3lance.c +++ b/drivers/net/sun3lance.c @@ -162,7 +162,7 @@ struct lance_private { #define MEM lp->mem #define DREG lp->iobase[0] #define AREG lp->iobase[1] -#define REGA(a) ( AREG = (a), DREG ) +#define REGA(a) (*( AREG = (a), &DREG )) /* Definitions for the Lance */