[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180806.104312.1983555084983717056.davem@davemloft.net>
Date: Mon, 06 Aug 2018 10:43:12 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: laoar.shao@...il.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] net: avoid unnecessary sock_flag() check when
enable timestamp
From: Yafang Shao <laoar.shao@...il.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@...il.com>
Applied.
Powered by blists - more mailing lists