aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2018-08-06 11:57:02 +0800
committerDavid S. Miller <davem@davemloft.net>2018-08-06 10:42:48 -0700
commit9dae34978d83df06fc59aff5cf0d88ce41b80643 (patch)
tree28a36c4d718423b7b95e610a801739326ca9ae17 /drivers
parentvhost: switch to use new message format (diff)
downloadlinux-dev-9dae34978d83df06fc59aff5cf0d88ce41b80643.tar.xz
linux-dev-9dae34978d83df06fc59aff5cf0d88ce41b80643.zip
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 'drivers')
0 files changed, 0 insertions, 0 deletions