diff mbox series

[ovs-dev] odp-execute.c : Fix odp_execute_clone if-else coding style.

Message ID ME3PR01MB5781DE9DC9BB7CCFB1BA2641CD249@ME3PR01MB5781.ausprd01.prod.outlook.com
State Superseded
Headers show
Series [ovs-dev] odp-execute.c : Fix odp_execute_clone if-else coding style. | expand

Commit Message

lin huang May 26, 2021, 3:16 p.m. UTC
Author: miter <linhuang@ruijie.com.cn>
Date:   Wed May 26 19:51:29 2021 +0800

odp-execute.c : Fix odp_execute_clone if-else coding style.

Signed-off-by: Miter Lin <linhuang@ruijie.com.cn>
---
                              nl_attr_get_size(actions), 
dp_execute_action);
      }

Comments

Ben Pfaff May 27, 2021, 4:28 p.m. UTC | #1
This patch is corrupt: it uses nonbreaking spaces where spaces should
be.  It also has Author: and Date: at the top, which shouldn't be there,
and repeats the first line of the commit message (from the subject) in
the body.

On Wed, May 26, 2021 at 11:16:33PM +0800, miter wrote:
> Author: miter <linhuang@ruijie.com.cn>
> Date:   Wed May 26 19:51:29 2021 +0800
> 
> odp-execute.c : Fix odp_execute_clone if-else coding style.
> 
> Signed-off-by: Miter Lin <linhuang@ruijie.com.cn>
> ---
> diff --git a/lib/odp-execute.c b/lib/odp-execute.c
> index 6eeda2a61..95c8d71d2 100644
> --- a/lib/odp-execute.c
> +++ b/lib/odp-execute.c
> @@ -735,8 +735,7 @@ odp_execute_clone(void *dp, struct dp_packet_batch
> *batch, bool steal,
>          dp_packet_batch_reset_cutlen(batch);
>          odp_execute_actions(dp, &clone_pkt_batch, true,
> nl_attr_get(actions),
>                          nl_attr_get_size(actions), dp_execute_action);
> -    }
> -    else {
> +    } else {
>          odp_execute_actions(dp, batch, true, nl_attr_get(actions),
>                              nl_attr_get_size(actions), dp_execute_action);
>      }
> 
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
diff mbox series

Patch

diff --git a/lib/odp-execute.c b/lib/odp-execute.c
index 6eeda2a61..95c8d71d2 100644
--- a/lib/odp-execute.c
+++ b/lib/odp-execute.c
@@ -735,8 +735,7 @@  odp_execute_clone(void *dp, struct dp_packet_batch 
*batch, bool steal,
          dp_packet_batch_reset_cutlen(batch);
          odp_execute_actions(dp, &clone_pkt_batch, true, 
nl_attr_get(actions),
                          nl_attr_get_size(actions), dp_execute_action);
-    }
-    else {
+    } else {
          odp_execute_actions(dp, batch, true, nl_attr_get(actions),