]> git.baikalelectronics.ru Git - kernel.git/commit
net: sock: make sock_tx_timestamp void
authorDaniel Borkmann <dborkman@redhat.com>
Sun, 14 Apr 2013 08:08:13 +0000 (08:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2013 19:41:49 +0000 (15:41 -0400)
commit9092f6ed0c0c83846c7f631408281d1e1b93b1a4
treefea0862757422b93ee4f158bf2a6f855a605d5b9
parentaac24e702446cce98ded1de79604aa567f389280
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
b637e179227b, ``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>
include/net/sock.h
net/can/raw.c
net/ipv4/ping.c
net/ipv4/udp.c
net/ipv6/ip6_output.c
net/packet/af_packet.c
net/socket.c