Re: [PATCH net-next] net: avoid unnecessary sock_flag() check when enable timestamp

From: David Miller
Date: Mon Aug 06 2018 - 13:43:15 EST


From: Yafang Shao <laoar.shao@xxxxxxxxx>
Date: Mon, 6 Aug 2018 11:57:02 +0800

> 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@xxxxxxxxx>

Applied.