Re: [PATCH] netfilter: osf: remove unreachable break in nf_osf_ttl()

Xuanqiang Luo <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.netfilter-devel
Message-ID <[email protected]>
在 2026/8/21 10:28, Linkui Xiao 写道:

> From: Linkui Xiao <[email protected]>
>
> In nf_osf_ttl(), the break statement after return in NF_OSF_TTL_TRUE
> case is unreachable dead‑code. The return statement exits the function
> immediately, so break will never execute.
>
> Remove the useless break, no functional change.
>
> Signed-off-by: Linkui Xiao <[email protected]>

Reviewed-by: Xuanqiang Luo<[email protected]>

Thanks,
Xuanqiang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.