mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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
20d4947353, ``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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
9d9f163c82
commit
bf84a01063
7 changed files with 16 additions and 25 deletions
|
|
@ -1224,11 +1224,8 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
|
|||
}
|
||||
|
||||
/* For UDP, check if TX timestamp is enabled */
|
||||
if (sk->sk_type == SOCK_DGRAM) {
|
||||
err = sock_tx_timestamp(sk, &tx_flags);
|
||||
if (err)
|
||||
goto error;
|
||||
}
|
||||
if (sk->sk_type == SOCK_DGRAM)
|
||||
sock_tx_timestamp(sk, &tx_flags);
|
||||
|
||||
/*
|
||||
* Let's try using as much space as possible.
|
||||
|
|
|
|||
Loading…
Reference in a new issue