Commit 60f40107 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

alx: Remove casts of pointer to same type

Casting a pointer to a pointer of the same type is pointless,
so remove these unnecessary casts.

Done via coccinelle script:

$ cat typecast_2.cocci
@@
type T;
T *foo;
@@

-	(T *)foo
+	foo
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 41ced615
...@@ -535,7 +535,7 @@ static int alx_alloc_descriptors(struct alx_priv *alx) ...@@ -535,7 +535,7 @@ static int alx_alloc_descriptors(struct alx_priv *alx)
if (!alx->descmem.virt) if (!alx->descmem.virt)
goto out_free; goto out_free;
alx->txq.tpd = (void *)alx->descmem.virt; alx->txq.tpd = alx->descmem.virt;
alx->txq.tpd_dma = alx->descmem.dma; alx->txq.tpd_dma = alx->descmem.dma;
/* alignment requirement for next block */ /* alignment requirement for next block */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment