net: Remove casts of void *
Unnecessary casts of void * clutter the code. These are the remainder casts after several specific patches to remove netdev_priv and dev_priv. Done via coccinelle script: $ cat cast_void_pointer.cocci @@ type T; T *pt; void *pv; @@ - pt = (T *)pv; + pt = pv; Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Paul Moore <paul.moore@hp.com> Signed-off-by: David S. Miller <davem@conan.davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3c8def9776
commit
ea11073387
@@ -1313,7 +1313,7 @@ static void *dn_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos)
|
||||
|
||||
++*pos;
|
||||
|
||||
dev = (struct net_device *)v;
|
||||
dev = v;
|
||||
if (v == SEQ_START_TOKEN)
|
||||
dev = net_device_entry(&init_net.dev_base_head);
|
||||
|
||||
|
Reference in New Issue
Block a user