Commit 1d7322f2 authored by Li zeming's avatar Li zeming Committed by David S. Miller

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: default avatarLi zeming <zeming@nfschina.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca5ebbfe
......@@ -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:
......
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