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>
This commit is contained in:
parent
50515cac8d
commit
23144a9156
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue