liquidio: Remove unneeded cast from memory allocation

Remove unneeded return value cast.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
YueHaibing 2020-09-01 22:11:15 +08:00 коммит произвёл David S. Miller
Родитель 1bac035c59
Коммит 8aa639e148
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -280,13 +280,10 @@ int octeon_init_droq(struct octeon_device *oct,
dev_dbg(&oct->pci_dev->dev, "droq[%d]: num_desc: %d\n", q_no,
droq->max_count);
droq->recv_buf_list = (struct octeon_recv_buffer *)
vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE),
numa_node);
droq->recv_buf_list = vzalloc_node(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE),
numa_node);
if (!droq->recv_buf_list)
droq->recv_buf_list = (struct octeon_recv_buffer *)
vzalloc(array_size(droq->max_count,
OCT_DROQ_RECVBUF_SIZE));
droq->recv_buf_list = vzalloc(array_size(droq->max_count, OCT_DROQ_RECVBUF_SIZE));
if (!droq->recv_buf_list) {
dev_err(&oct->pci_dev->dev, "Output queue recv buf list alloc failed\n");
goto init_droq_fail;