[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <10eab0b6-4106-481f-abdb-b97fb162355b@blackwall.org>
Date: Fri, 31 May 2024 11:27:44 +0300
From: Nikolay Aleksandrov <razor@...ckwall.org>
To: Chen Hanxiao <chenhx.fnst@...itsu.com>, Roopa Prabhu <roopa@...dia.com>,
"David S . Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: bridge@...ts.linux.dev, netdev@...r.kernel.org
Subject: Re: [PATCH] net: bridge: Clean up one inconsistent indenting warn
reported by smatch
On 5/31/24 11:11, Chen Hanxiao wrote:
> smatch complains:
> net/bridge/br_netlink_tunnel.c:
> 318 br_process_vlan_tunnel_info() warn: inconsistent indenting
>
> Fix it with proper indenting.
>
> Signed-off-by: Chen Hanxiao <chenhx.fnst@...itsu.com>
> ---
> net/bridge/br_netlink_tunnel.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/net/bridge/br_netlink_tunnel.c b/net/bridge/br_netlink_tunnel.c
> index 17abf092f7ca..25ac3a5386ef 100644
> --- a/net/bridge/br_netlink_tunnel.c
> +++ b/net/bridge/br_netlink_tunnel.c
> @@ -315,8 +315,9 @@ int br_process_vlan_tunnel_info(const struct net_bridge *br,
>
> if (curr_change)
> *changed = curr_change;
> - __vlan_tunnel_handle_range(p, &v_start, &v_end, v,
> - curr_change);
> +
Drop the extra new line.
> + __vlan_tunnel_handle_range(p, &v_start, &v_end, v,
> + curr_change);
> }
> if (v_start && v_end)
> br_vlan_notify(br, p, v_start->vid, v_end->vid,
The patch should be targeted at net-next (subject PATCH net-next).
Also please remove the "reported by smatch" from the subject
we have a Reported-by tag, but I think that information is not
needed here. Just "fix inconsistent indentation" is enough, you've
already mentioned it was found by smatch in the commit msg.
Thanks,
Nik
Powered by blists - more mailing lists