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>
This commit is contained in:
Li zeming 2022-11-15 10:14:24 +08:00 committed by David S. Miller
parent ca5ebbfec3
commit 1d7322f28f
1 changed files with 2 additions and 2 deletions

View File

@ -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: