Re: [PATCH net-next] net: vxlan: remove duplicated initialization in vxlan_xmit
From: Simon Horman
Date: Sun Aug 11 2024 - 09:58:56 EST
On Sat, Aug 10, 2024 at 10:06:32AM +0800, Menglong Dong wrote:
> The variable "did_rsc" is initialized twice, which is unnecessary. Just
> remove one of them.
>
> Signed-off-by: Menglong Dong <dongml2@xxxxxxxxxxxxxxx>
Thanks, I have verified that did_rsc is initialised to false,
else where in this function, before it is otherwise used.
And, as the function may return before then, it does seem
reasonable to defer initialisation until then.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>