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:
parent
ca5ebbfec3
commit
1d7322f28f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue