* [PATCH] ax25: af_ax25: Remove unnecessary (void*) conversions
@ 2022-11-15 2:14 Li zeming
2022-11-16 13:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2022-11-15 2:14 UTC (permalink / raw)
To: jreuter, ralf, davem, edumazet, kuba, pabeni
Cc: linux-hams, netdev, linux-kernel, Li zeming
The valptr pointer is of (void *) type, so other pointers need not be
forced to assign values to it.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
net/ax25/af_ax25.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index 6b4c25a92377..d8da400cb4de 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -723,7 +723,7 @@ static int ax25_getsockopt(struct socket *sock, int level, int optname,
if (maxlen < 1)
return -EFAULT;
- valptr = (void *) &val;
+ valptr = &val;
length = min_t(unsigned int, maxlen, sizeof(int));
lock_sock(sk);
@@ -785,7 +785,7 @@ static int ax25_getsockopt(struct socket *sock, int level, int optname,
length = 1;
}
- valptr = (void *) devname;
+ valptr = devname;
break;
default:
--
2.18.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ax25: af_ax25: Remove unnecessary (void*) conversions
2022-11-15 2:14 [PATCH] ax25: af_ax25: Remove unnecessary (void*) conversions Li zeming
@ 2022-11-16 13:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-11-16 13:40 UTC (permalink / raw)
To: Li zeming
Cc: jreuter, ralf, davem, edumazet, kuba, pabeni, linux-hams, netdev,
linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Tue, 15 Nov 2022 10:14:24 +0800 you wrote:
> The valptr pointer is of (void *) type, so other pointers need not be
> forced to assign values to it.
>
> Signed-off-by: Li zeming <zeming@nfschina.com>
> ---
> net/ax25/af_ax25.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- ax25: af_ax25: Remove unnecessary (void*) conversions
https://git.kernel.org/netdev/net-next/c/1d7322f28fde
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-16 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 2:14 [PATCH] ax25: af_ax25: Remove unnecessary (void*) conversions Li zeming
2022-11-16 13:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).