diff mbox series

[net-next] net: bridge: fix an inconsistent indentation

Message ID 20240531085402.1838-1-chenhx.fnst@fujitsu.com (mailing list archive)
State Accepted
Commit cdbdb3c62af5bc13e6e8a9310470c71c33340d26
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: bridge: fix an inconsistent indentation | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 902 this patch: 902
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 906 this patch: 906
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 906 this patch: 906
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 10 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-06-04--18-00 (tests: 1045)

Commit Message

Chen Hanxiao May 31, 2024, 8:54 a.m. UTC
Smatch complains:
net/bridge/br_netlink_tunnel.c:
   318 br_process_vlan_tunnel_info() warn: inconsistent indenting

Fix it with a proper indenting

Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
---
v2:
    add net-next tag
    modify subject

 net/bridge/br_netlink_tunnel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Nikolay Aleksandrov June 2, 2024, 1:50 p.m. UTC | #1
On 5/31/24 11:54, Chen Hanxiao wrote:
> Smatch complains:
> net/bridge/br_netlink_tunnel.c:
>    318 br_process_vlan_tunnel_info() warn: inconsistent indenting
> 
> Fix it with a proper indenting
> 
> Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
> ---
> v2:
>     add net-next tag
>     modify subject
> 
>  net/bridge/br_netlink_tunnel.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/bridge/br_netlink_tunnel.c b/net/bridge/br_netlink_tunnel.c
> index 17abf092f7ca..71a12da30004 100644
> --- a/net/bridge/br_netlink_tunnel.c
> +++ b/net/bridge/br_netlink_tunnel.c
> @@ -315,8 +315,8 @@ 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);
> +			__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,

Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Paolo Abeni June 4, 2024, 1:57 p.m. UTC | #2
On Fri, 2024-05-31 at 16:54 +0800, Chen Hanxiao wrote:
> Smatch complains:
> net/bridge/br_netlink_tunnel.c:
>    318 br_process_vlan_tunnel_info() warn: inconsistent indenting
> 
> Fix it with a proper indenting
> 
> Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>

My take is that purely format changes should be part of
larger/features-based change, to avoid any later stable fix harder for
no real reason.

Thanks,

Paolo
Nikolay Aleksandrov June 4, 2024, 2:10 p.m. UTC | #3
On June 4, 2024 4:57:12 PM GMT+03:00, Paolo Abeni <pabeni@redhat.com> wrote:
>On Fri, 2024-05-31 at 16:54 +0800, Chen Hanxiao wrote:
>> Smatch complains:
>> net/bridge/br_netlink_tunnel.c:
>>    318 br_process_vlan_tunnel_info() warn: inconsistent indenting
>> 
>> Fix it with a proper indenting
>> 
>> Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
>
>My take is that purely format changes should be part of
>larger/features-based change, to avoid any later stable fix harder for
>no real reason.
>
>Thanks,
>
>Paolo
>

This is new, I don't see anything wrong with fixing bad indentation.
Waiting for a set which touches this code which hasn't changed for a long time ib order to fix it is doesn't sound 
good to me. It is very trivial to resolve for anyone.

Cheers,
 Nik
patchwork-bot+netdevbpf@kernel.org June 5, 2024, 9:10 a.m. UTC | #4
Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Fri, 31 May 2024 16:54:02 +0800 you wrote:
> Smatch complains:
> net/bridge/br_netlink_tunnel.c:
>    318 br_process_vlan_tunnel_info() warn: inconsistent indenting
> 
> Fix it with a proper indenting
> 
> Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
> 
> [...]

Here is the summary with links:
  - [net-next] net: bridge: fix an inconsistent indentation
    https://git.kernel.org/netdev/net-next/c/cdbdb3c62af5

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/bridge/br_netlink_tunnel.c b/net/bridge/br_netlink_tunnel.c
index 17abf092f7ca..71a12da30004 100644
--- a/net/bridge/br_netlink_tunnel.c
+++ b/net/bridge/br_netlink_tunnel.c
@@ -315,8 +315,8 @@  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);
+			__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,