net: Remove casts to same type
Adding casts of objects to the same type is unnecessary and confusing for a human reader. For example, this cast: int y; int *p = (int *)&y; I used the coccinelle script below to find and remove these unnecessary casts. I manually removed the conversions this script produces of casts with __force and __user. @@ type T; T *p; @@ - (T *)p + p Signed-off-by:Joe Perches <joe@perches.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/9p/client.c 1 addition, 1 deletionnet/9p/client.c
- net/atm/lec.c 1 addition, 1 deletionnet/atm/lec.c
- net/decnet/dn_nsp_out.c 1 addition, 1 deletionnet/decnet/dn_nsp_out.c
- net/ipv4/af_inet.c 1 addition, 1 deletionnet/ipv4/af_inet.c
- net/ipv4/fib_trie.c 6 additions, 7 deletionsnet/ipv4/fib_trie.c
- net/ipv4/netfilter/nf_nat_snmp_basic.c 2 additions, 2 deletionsnet/ipv4/netfilter/nf_nat_snmp_basic.c
- net/ipv6/exthdrs.c 2 additions, 2 deletionsnet/ipv6/exthdrs.c
- net/irda/irqueue.c 3 additions, 3 deletionsnet/irda/irqueue.c
- net/l2tp/l2tp_ppp.c 4 additions, 4 deletionsnet/l2tp/l2tp_ppp.c
- net/mac80211/scan.c 1 addition, 2 deletionsnet/mac80211/scan.c
- net/netfilter/nf_conntrack_core.c 1 addition, 1 deletionnet/netfilter/nf_conntrack_core.c
- net/packet/af_packet.c 4 additions, 5 deletionsnet/packet/af_packet.c
- net/tipc/port.c 4 additions, 5 deletionsnet/tipc/port.c
- net/tipc/socket.c 1 addition, 1 deletionnet/tipc/socket.c
Loading
Please register or sign in to comment