[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>
This commit is contained in:
parent
ce6623c3d8
commit
e345d5ef6d
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue