diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2018-08-06 06:57:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-06 20:42:48 +0300 |
commit | 9dae34978d83df06fc59aff5cf0d88ce41b80643 (patch) | |
tree | 28a36c4d718423b7b95e610a801739326ca9ae17 /Documentation/RCU | |
parent | 429711aec282c4b5fe5bbd7b2f0bbbff4110ffb2 (diff) | |
download | linux-9dae34978d83df06fc59aff5cf0d88ce41b80643.tar.xz |
net: avoid unnecessary sock_flag() check when enable timestamp
The sock_flag() check is alreay inside sock_enable_timestamp(), so it is
unnecessary checking it in the caller.
void sock_enable_timestamp(struct sock *sk, int flag)
{
if (!sock_flag(sk, flag)) {
...
}
}
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/RCU')
0 files changed, 0 insertions, 0 deletions