Messages in this thread | | | Date | Mon, 06 Aug 2018 10:43:12 -0700 (PDT) | Subject | Re: [PATCH net-next] net: avoid unnecessary sock_flag() check when enable timestamp | From | David Miller <> |
| |
From: Yafang Shao <laoar.shao@gmail.com> 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@gmail.com>
Applied.
| |