octeon_ep: Remove useless casting value returned by vzalloc to structure
authorJules Irenge <jbi.octave@gmail.com>
Mon, 12 Sep 2022 22:03:27 +0000 (23:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 01:33:21 +0000 (18:33 -0700)
commited48cfedf1e2250c856d0f894310d081adde5040
treeef4924ee21a9fa4d8f4c2ea3fd3b1a420b81a2f0
parent8bb7c4f8c9276eb61f7f39cc107f67a0e81de610
octeon_ep: Remove useless casting value returned by vzalloc to structure

coccinelle reports a warning

WARNING: casting value returned by memory allocation
function to (struct octep_rx_buffer *) is useless.

To fix this the useless cast is removed.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/Yx+sr9o0uylXVcOl@playground
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c