aboutsummaryrefslogtreecommitdiff
path: root/sim/bfin/dv-bfin_emac.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/bfin/dv-bfin_emac.c')
-rw-r--r--sim/bfin/dv-bfin_emac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/bfin/dv-bfin_emac.c b/sim/bfin/dv-bfin_emac.c
index ec40bc5..fd3fcd3 100644
--- a/sim/bfin/dv-bfin_emac.c
+++ b/sim/bfin/dv-bfin_emac.c
@@ -413,7 +413,7 @@ bfin_emac_dma_read_buffer (struct hw *me, void *dest, int space,
if (ret < 0)
return 0;
ret += 4; /* include crc */
- pad_ret = MAX (ret + 4, 64);
+ pad_ret = max (ret + 4, 64);
len = pad_ret;
memcpy (dest, &len, 2);