ravb: Use ALIGN macro for max_rx_len
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 12 Oct 2021 16:36:00 +0000 (17:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Oct 2021 16:08:55 +0000 (09:08 -0700)
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>
drivers/net/ethernet/renesas/ravb_main.c

index 50038e76c72fedfb34d8389e6f2d94d46073bcd5..0e3cda1140e54a81ccc4b388e32df1b421127524 100644 (file)
@@ -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,