We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb7c4f commit ed48cfeCopy full SHA for ed48cfe
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c
@@ -158,8 +158,7 @@ static int octep_setup_oq(struct octep_device *oct, int q_no)
158
goto desc_dma_alloc_err;
159
}
160
161
- oq->buff_info = (struct octep_rx_buffer *)
162
- vzalloc(oq->max_count * OCTEP_OQ_RECVBUF_SIZE);
+ oq->buff_info = vzalloc(oq->max_count * OCTEP_OQ_RECVBUF_SIZE);
163
if (unlikely(!oq->buff_info)) {
164
dev_err(&oct->pdev->dev,
165
"Failed to allocate buffer info for OQ-%d\n", q_no);
0 commit comments