summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
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/ptp
parent429711aec282c4b5fe5bbd7b2f0bbbff4110ffb2 (diff)
downloadlinux-9dae34978d83df06fc59aff5cf0d88ce41b80643.tar.gz
linux-9dae34978d83df06fc59aff5cf0d88ce41b80643.tar.bz2
linux-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/ptp')
0 files changed, 0 insertions, 0 deletions