diff options
author | Joe Perches <joe@perches.com> | 2014-03-25 00:15:35 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-26 23:46:15 +0400 |
commit | 60f40107ab7d722810fd8aa3f52590752a0a3acf (patch) | |
tree | 353891e253238cc2e79ca6b20f579d1c4368dcf8 /drivers/net/ethernet/atheros | |
parent | 41ced615e5782582789b6a0cbafe3a0603f9beb0 (diff) | |
download | linux-60f40107ab7d722810fd8aa3f52590752a0a3acf.tar.xz |
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: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r-- | drivers/net/ethernet/atheros/alx/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index 96f3edb6c738..17bb9ce96260 100644 --- a/drivers/net/ethernet/atheros/alx/main.c +++ b/drivers/net/ethernet/atheros/alx/main.c @@ -535,7 +535,7 @@ static int alx_alloc_descriptors(struct alx_priv *alx) if (!alx->descmem.virt) goto out_free; - alx->txq.tpd = (void *)alx->descmem.virt; + alx->txq.tpd = alx->descmem.virt; alx->txq.tpd_dma = alx->descmem.dma; /* alignment requirement for next block */ |