[ovs-dev] [PATCH 4/7] netdev-tc-offloads: Remove redundant brackets

Roi Dayan roid at mellanox.com
Tue Nov 21 12:40:39 UTC 2017


From: Paul Blakey <paulb at mellanox.com>

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
---
 lib/tc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tc.c b/lib/tc.c
index 360a770..4f82623 100644
--- a/lib/tc.c
+++ b/lib/tc.c
@@ -1059,7 +1059,7 @@ static void
 nl_msg_put_act_pedit(struct ofpbuf *request, struct tc_pedit *parm,
                      struct tc_pedit_key_ex *ex)
 {
-    size_t ksize = sizeof *parm + (parm->nkeys * sizeof(struct tc_pedit_key));
+    size_t ksize = sizeof *parm + parm->nkeys * sizeof(struct tc_pedit_key);
     size_t offset, offset_keys_ex, offset_key;
     int i;
 
-- 
2.7.5



More information about the dev mailing list