mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
net: get rid of some pointless casts to sockaddr
The following 4 functions: move_addr_to_kernel move_addr_to_user verify_iovec verify_compat_iovec are always effectively called with a sockaddr_storage. Make this explicit by changing their signature. This removes a large number of casts from sockaddr_storage to sockaddr. Signed-off-by: Maciej Żenczykowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8b2aaedee4
commit
43db362d3a
5 changed files with 19 additions and 27 deletions
|
|
@ -79,7 +79,7 @@ int get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg)
|
|||
|
||||
/* I've named the args so it is easy to tell whose space the pointers are in. */
|
||||
int verify_compat_iovec(struct msghdr *kern_msg, struct iovec *kern_iov,
|
||||
struct sockaddr *kern_address, int mode)
|
||||
struct sockaddr_storage *kern_address, int mode)
|
||||
{
|
||||
int tot_len;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue