[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240702092802.GC598357@kernel.org>
Date: Tue, 2 Jul 2024 10:28:02 +0100
From: Simon Horman <horms@...nel.org>
To: Liu Jing <liujing@...s.chinamobile.com>
Cc: pablo@...filter.org, kadlec@...filter.org, davem@...emloft.net,
dsahern@...nel.org, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, netfilter-devel@...r.kernel.org,
coreteam@...filter.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] netfilter: remove unnecessary assignment in
translate_table
On Mon, Jul 01, 2024 at 07:53:02PM +0800, Liu Jing wrote:
> in translate_table, the initialized value of 'ret' is unused,
> because it will be assigned in the rear. thus remove it.
>
> Signed-off-by: Liu Jing <liujing@...s.chinamobile.com>
Thanks,
I agree that ret is always set before it is used in translate_table(),
and thus the initialisation to 0 accompanying the variable declaration
is unnecessary.
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists