net: get rid of some pointless casts to sockaddr
authorMaciej Żenczykowski <maze@google.com>
Sun, 11 Mar 2012 12:51:50 +0000 (12:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2012 02:11:22 +0000 (19:11 -0700)
commit43db362d3adda9e0a915ddb9a8d1a41186e19179
tree83f00b1c09a4f54c43f94da7afb3064923415394
parent8b2aaedee4eaa94e816144ed54b9707b96be29f8
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 <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/socket.h
include/net/compat.h
net/compat.c
net/core/iovec.c
net/socket.c