From 40997e30ac3e4789f08a8a05f134757756c18ebd Mon Sep 17 00:00:00 2001 From: Alexander Goncharov Date: Fri, 17 Jun 2022 08:32:47 +0300 Subject: atavia: fix BYTE_OFFSET's macro argument value A macro value has to use a correct argument name. Change-Id: I666204ec92c6df625b34ca721b3e1af78772bccf Signed-off-by: Alexander Goncharov Reviewed-on: https://review.coreboot.org/c/flashrom/+/65193 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer Reviewed-by: Angel Pons --- atavia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atavia.c') diff --git a/atavia.c b/atavia.c index e8bc9454..630bfb09 100644 --- a/atavia.c +++ b/atavia.c @@ -46,7 +46,7 @@ /* Select the byte we want to access. This is done by clearing the bit corresponding to the byte we want to * access, leaving the others set (yes, really). */ #define ENABLE_BYTE(address) ((~(1 << ((address) & 3))) & BROM_BYTE_ENABLE_MASK) -#define BYTE_OFFSET(address) (((addr) & 3) * 8) +#define BYTE_OFFSET(address) (((address) & 3) * 8) static const struct dev_entry ata_via[] = { {PCI_VENDOR_ID_VIA, 0x3249, DEP, "VIA", "VT6421A"}, -- cgit v1.2.3