All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] amt: remove unnecessary type castings
@ 2022-07-06  1:14 Yu Zhe
  2022-07-06  4:40 ` Taehee Yoo
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Zhe @ 2022-07-06  1:14 UTC (permalink / raw)
  To: ap420073, davem, edumazet, kuba, pabeni
  Cc: netdev, linux-kernel, liqiong, Yu Zhe

remove unnecessary void* type castings.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
---
 drivers/net/amt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/amt.c b/drivers/net/amt.c
index be2719a3ba70..6b4402c26206 100644
--- a/drivers/net/amt.c
+++ b/drivers/net/amt.c
@@ -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;
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] amt: remove unnecessary type castings
  2022-07-06  1:14 [PATCH] amt: remove unnecessary type castings Yu Zhe
@ 2022-07-06  4:40 ` Taehee Yoo
  0 siblings, 0 replies; 2+ messages in thread
From: Taehee Yoo @ 2022-07-06  4:40 UTC (permalink / raw)
  To: Yu Zhe, davem, edumazet, kuba, pabeni; +Cc: netdev, linux-kernel, liqiong

Hi Yu,
Thanks for your work!

2022. 7. 6. 오전 10:14에 Yu Zhe 이(가) 쓴 글:
 > remove unnecessary void* type castings.
 >
 > Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
 > ---
 >   drivers/net/amt.c | 4 ++--
 >   1 file changed, 2 insertions(+), 2 deletions(-)
 >
 > diff --git a/drivers/net/amt.c b/drivers/net/amt.c
 > index be2719a3ba70..6b4402c26206 100644
 > --- a/drivers/net/amt.c
 > +++ b/drivers/net/amt.c
 > @@ -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;

You already sent the same patch[1] and it is merged[2], it can't be applied.

[1] https://marc.info/?l=linux-netdev&m=165577785300445&w=2
[2] 
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/drivers/net/amt.c?id=d13a3205a7175d673d5080ddf155dc69aad6085c

Thanks a lot!
Taehee Yoo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-06  4:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06  1:14 [PATCH] amt: remove unnecessary type castings Yu Zhe
2022-07-06  4:40 ` Taehee Yoo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.