summaryrefslogtreecommitdiff
path: root/drivers/net/sun3lance.c
diff options
context:
space:
mode:
authorAl Viro <viro@www.linux.org.uk>2005-08-25 09:24:21 +0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-07 06:47:00 +0400
commite345d5ef6d476cc236f64d90d9528143a70745c8 (patch)
treea0ac5df1abe0d0a0d361a4160e796a387a7e6d23 /drivers/net/sun3lance.c
parentce6623c3d8f932a15306355a7c9a0cdfdd6a26ec (diff)
downloadlinux-e345d5ef6d476cc236f64d90d9528143a70745c8.tar.xz
[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>
Diffstat (limited to 'drivers/net/sun3lance.c')
-rw-r--r--drivers/net/sun3lance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sun3lance.c b/drivers/net/sun3lance.c
index 1f43bbfbc1c7..5c8fcd40ef4d 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 */