diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-04-28 19:14:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-30 15:12:58 +0100 |
commit | 2e47eece158a7e5d2205be42e9c44b87302de1a7 (patch) | |
tree | 085d31da7d418c0ad743006562d3af304876130b /net/ipv4/igmp.c | |
parent | 36ffca1afea9b429d3e49aa0b6a68ecd93f3be11 (diff) |
ipv4: remove unnecessary type castings
remove unnecessary void* type castings.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r-- | net/ipv4/igmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 2ad3c7b42d6d..1ba8ebc439f3 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -2836,7 +2836,7 @@ static int igmp_mc_seq_show(struct seq_file *seq, void *v) seq_puts(seq, "Idx\tDevice : Count Querier\tGroup Users Timer\tReporter\n"); else { - struct ip_mc_list *im = (struct ip_mc_list *)v; + struct ip_mc_list *im = v; struct igmp_mc_iter_state *state = igmp_mc_seq_private(seq); char *querier; long delta; @@ -2980,7 +2980,7 @@ static void igmp_mcf_seq_stop(struct seq_file *seq, void *v) static int igmp_mcf_seq_show(struct seq_file *seq, void *v) { - struct ip_sf_list *psf = (struct ip_sf_list *)v; + struct ip_sf_list *psf = v; struct igmp_mcf_iter_state *state = igmp_mcf_seq_private(seq); if (v == SEQ_START_TOKEN) { |