summaryrefslogtreecommitdiff
path: root/net/ax25
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2022-11-15 10:14:24 +0800
committerDavid S. Miller <davem@davemloft.net>2022-11-16 13:31:03 +0000
commit1d7322f28fde3f90f2a2ed0b62fafc004b3f822a (patch)
tree49eb525c522e8bb926f520040c13cc5c7d6dcf42 /net/ax25
parentca5ebbfec31487a208d9e0b13a99dbb738a3281b (diff)
ax25: af_ax25: Remove unnecessary (void*) conversions
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25')
-rw-r--r--net/ax25/af_ax25.c4
1 files 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: