Skip to content

Commit

Permalink
[PATCH] lvalues abuse in lance
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Jeff Garzik committed Sep 7, 2005
1 parent ce6623c commit e345d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/atarilance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/sun3lance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit e345d5e

Please sign in to comment.