Commit d13a3205 authored by Yu Zhe's avatar Yu Zhe Committed by Jakub Kicinski

amt: remove unnecessary (void*) conversions

Remove unnecessary void* type castings.
Signed-off-by: default avatarYu Zhe <yuzhe@nfschina.com>
Acked-by: default avatarTaehee Yoo <ap420073@gmail.com>
Link: https://lore.kernel.org/r/20220621021648.2544-1-yuzhe@nfschina.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6dd4142f
......@@ -1373,11 +1373,11 @@ static void amt_add_srcs(struct amt_dev *amt, struct amt_tunnel_list *tunnel,
int i;
if (!v6) {
igmp_grec = (struct igmpv3_grec *)grec;
igmp_grec = grec;
nsrcs = ntohs(igmp_grec->grec_nsrcs);
} else {
#if IS_ENABLED(CONFIG_IPV6)
mld_grec = (struct mld2_grec *)grec;
mld_grec = grec;
nsrcs = ntohs(mld_grec->grec_nsrcs);
#else
return;
......@@ -1458,11 +1458,11 @@ static void amt_lookup_act_srcs(struct amt_tunnel_list *tunnel,
int i, j;
if (!v6) {
igmp_grec = (struct igmpv3_grec *)grec;
igmp_grec = grec;
nsrcs = ntohs(igmp_grec->grec_nsrcs);
} else {
#if IS_ENABLED(CONFIG_IPV6)
mld_grec = (struct mld2_grec *)grec;
mld_grec = grec;
nsrcs = ntohs(mld_grec->grec_nsrcs);
#else
return;
......
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