[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHC9VhQVdEsvSf0zqOTnduJChcQ+S26N=3vy0x_6n0QDDP04FA@mail.gmail.com>
Date: Tue, 27 Feb 2024 10:54:10 -0500
From: Paul Moore <paul@...l-moore.com>
To: Zhengchao Shao <shaozhengchao@...wei.com>
Cc: netdev@...r.kernel.org, linux-security-module@...r.kernel.org,
davem@...emloft.net, dsahern@...nel.org, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, weiyongjun1@...wei.com, yuehaibing@...wei.com
Subject: Re: [PATCH net-next] netlabel: remove impossible return value in netlbl_bitmap_walk
On Tue, Feb 27, 2024 at 4:28 AM Zhengchao Shao <shaozhengchao@...wei.com> wrote:
>
> Since commit 446fda4f2682 ("[NetLabel]: CIPSOv4 engine"), *bitmap_walk
> function only returns -1. Nearly 18 years have passed, -2 scenes never
> come up, so there's no need to consider it.
>
> Signed-off-by: Zhengchao Shao <shaozhengchao@...wei.com>
> ---
> net/ipv4/cipso_ipv4.c | 5 +----
> net/ipv6/calipso.c | 5 +----
> net/netlabel/netlabel_kapi.c | 2 +-
> 3 files changed, 3 insertions(+), 9 deletions(-)
Looks good to me, thanks for the patch.
Acked-by: Paul Moore <paul@...l-moore.com>
--
paul-moore.com
Powered by blists - more mailing lists