diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2021-10-12 17:36:00 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-13 09:08:55 -0700 |
commit | 23144a915684b645529b0a51cbbfd5eae727ced7 (patch) | |
tree | 127b2e9a58280ee8e123edc97e272efb9c34fe76 | |
parent | 50515cac8d0ea2026db2f0cb456bfa51d5e8e85f (diff) |
ravb: Use ALIGN macro for max_rx_len
Use ALIGN macro for calculating the value for max_rx_len.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Suggested-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/ethernet/renesas/ravb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 50038e76c72f..0e3cda1140e5 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -2227,7 +2227,7 @@ static const struct ravb_hw_info gbeth_hw_info = { .set_feature = ravb_set_features_gbeth, .dmac_init = ravb_dmac_init_gbeth, .emac_init = ravb_emac_init_gbeth, - .max_rx_len = GBETH_RX_BUFF_MAX + RAVB_ALIGN - 1, + .max_rx_len = ALIGN(GBETH_RX_BUFF_MAX, RAVB_ALIGN), .tsrq = TCCR_TSRQ0, .aligned_tx = 1, .tx_counters = 1, |