summaryrefslogtreecommitdiffstats
path: root/drivers/net/atarilance.c
diff options
context:
space:
mode:
authorAl Viro <viro@www.linux.org.uk>2005-08-25 07:24:21 +0200
committerJeff Garzik <jgarzik@pobox.com>2005-09-07 04:47:00 +0200
commite345d5ef6d476cc236f64d90d9528143a70745c8 (patch)
treea0ac5df1abe0d0a0d361a4160e796a387a7e6d23 /drivers/net/atarilance.c
parent[PATCH] airo : WE-19 support (diff)
downloadlinux-e345d5ef6d476cc236f64d90d9528143a70745c8.tar.xz
linux-e345d5ef6d476cc236f64d90d9528143a70745c8.zip
[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/atarilance.c')
-rw-r--r--drivers/net/atarilance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atarilance.c b/drivers/net/atarilance.c
index ad011214c7f2..e01b6a78ec63 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