net: sock: make sock_tx_timestamp void
Currently, sock_tx_timestamp() always returns 0. The comment that describes the sock_tx_timestamp() function wrongly says that it returns an error when an invalid argument is passed (from commit 20d49473, ``net: socket infrastructure for SO_TIMESTAMPING''). Make the function void, so that we can also remove all the unneeded if conditions that check for such a _non-existant_ error case in the output path. Signed-off-by:Daniel Borkmann <dborkman@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/sock.h 2 additions, 3 deletionsinclude/net/sock.h
- net/can/raw.c 2 additions, 3 deletionsnet/can/raw.c
- net/ipv4/ping.c 2 additions, 3 deletionsnet/ipv4/ping.c
- net/ipv4/udp.c 3 additions, 3 deletionsnet/ipv4/udp.c
- net/ipv6/ip6_output.c 2 additions, 5 deletionsnet/ipv6/ip6_output.c
- net/packet/af_packet.c 4 additions, 6 deletionsnet/packet/af_packet.c
- net/socket.c 1 addition, 2 deletionsnet/socket.c
Loading
Please register or sign in to comment