diff mbox series

[v1,net-next] net: hsr: cosmetic: Remove extra white space

Message ID 20240618125817.1111070-1-lukma@denx.de (mailing list archive)
State Accepted
Commit 89f5e607772b4d6e467adf8bbe530a5036abb415
Delegated to: Netdev Maintainers
Headers show
Series [v1,net-next] net: hsr: cosmetic: Remove extra white space | 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: 845 this patch: 845
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers success CCed 5 of 5 maintainers
netdev/build_clang success Errors and warnings before: 849 this patch: 849
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: 849 this patch: 849
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 11 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-19--21-00 (tests: 657)

Commit Message

Lukasz Majewski June 18, 2024, 12:58 p.m. UTC
This change just removes extra (i.e. not needed) white space in
prp_drop_frame() function.

No functional changes.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
 net/hsr/hsr_forward.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Hangbin Liu June 19, 2024, 2:44 a.m. UTC | #1
On Tue, Jun 18, 2024 at 02:58:17PM +0200, Lukasz Majewski wrote:
> This change just removes extra (i.e. not needed) white space in
> prp_drop_frame() function.
> 
> No functional changes.
> 
> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> ---
>  net/hsr/hsr_forward.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c
> index 960ef386bc3a..b38060246e62 100644
> --- a/net/hsr/hsr_forward.c
> +++ b/net/hsr/hsr_forward.c
> @@ -421,9 +421,9 @@ static int hsr_xmit(struct sk_buff *skb, struct hsr_port *port,
>  bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port)
>  {
>  	return ((frame->port_rcv->type == HSR_PT_SLAVE_A &&
> -		 port->type ==  HSR_PT_SLAVE_B) ||
> +		 port->type == HSR_PT_SLAVE_B) ||
>  		(frame->port_rcv->type == HSR_PT_SLAVE_B &&
> -		 port->type ==  HSR_PT_SLAVE_A));
> +		 port->type == HSR_PT_SLAVE_A));
>  }
>  
>  bool hsr_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port)
> -- 
> 2.20.1
> 

Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
patchwork-bot+netdevbpf@kernel.org June 20, 2024, 12:40 a.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 18 Jun 2024 14:58:17 +0200 you wrote:
> This change just removes extra (i.e. not needed) white space in
> prp_drop_frame() function.
> 
> No functional changes.
> 
> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> 
> [...]

Here is the summary with links:
  - [v1,net-next] net: hsr: cosmetic: Remove extra white space
    https://git.kernel.org/netdev/net-next/c/89f5e607772b

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c
index 960ef386bc3a..b38060246e62 100644
--- a/net/hsr/hsr_forward.c
+++ b/net/hsr/hsr_forward.c
@@ -421,9 +421,9 @@  static int hsr_xmit(struct sk_buff *skb, struct hsr_port *port,
 bool prp_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port)
 {
 	return ((frame->port_rcv->type == HSR_PT_SLAVE_A &&
-		 port->type ==  HSR_PT_SLAVE_B) ||
+		 port->type == HSR_PT_SLAVE_B) ||
 		(frame->port_rcv->type == HSR_PT_SLAVE_B &&
-		 port->type ==  HSR_PT_SLAVE_A));
+		 port->type == HSR_PT_SLAVE_A));
 }
 
 bool hsr_drop_frame(struct hsr_frame_info *frame, struct hsr_port *port)