[ovs-dev] [PATCH 3/3] extend-table: Minor style fixups.

Ben Pfaff blp at ovn.org
Wed Jan 24 01:39:35 UTC 2018


This is intended to be squashed with the previous commit.

Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 ovn/controller/ofctrl.c |  3 ++-
 ovn/lib/extend-table.c  |  6 ++++--
 ovn/lib/extend-table.h  | 14 +++++++-------
 3 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/ovn/controller/ofctrl.c b/ovn/controller/ofctrl.c
index c81c40c6e646..61bbf54bbdf2 100644
--- a/ovn/controller/ofctrl.c
+++ b/ovn/controller/ofctrl.c
@@ -765,7 +765,8 @@ add_group_mod(const struct ofputil_group_mod *gm, struct ovs_list *msgs)
 }
 
 static void
-delete_group(uint32_t table_id, struct ovs_list *msgs) {
+delete_group(uint32_t table_id, struct ovs_list *msgs)
+{
     /* Delete the group. */
     struct ofputil_group_mod gm;
     enum ofputil_protocol usable_protocols;
diff --git a/ovn/lib/extend-table.c b/ovn/lib/extend-table.c
index 26391b6bd264..22ad88ec2dcd 100644
--- a/ovn/lib/extend-table.c
+++ b/ovn/lib/extend-table.c
@@ -22,7 +22,8 @@
 
 VLOG_DEFINE_THIS_MODULE(extend_table);
 
-void ovn_extend_table_init(struct ovn_extend_table *table)
+void
+ovn_extend_table_init(struct ovn_extend_table *table)
 {
     table->table_ids = bitmap_allocate(MAX_EXT_TABLE_ID);
     bitmap_set1(table->table_ids, 0); /* table id 0 is invalid. */
@@ -30,7 +31,8 @@ void ovn_extend_table_init(struct ovn_extend_table *table)
     hmap_init(&table->existing);
 }
 
-void ovn_extend_table_destroy(struct ovn_extend_table *table)
+void
+ovn_extend_table_destroy(struct ovn_extend_table *table)
 {
     bitmap_free(table->table_ids);
 
diff --git a/ovn/lib/extend-table.h b/ovn/lib/extend-table.h
index 67ac5d77436e..361819e8c258 100644
--- a/ovn/lib/extend-table.h
+++ b/ovn/lib/extend-table.h
@@ -45,23 +45,23 @@ struct ovn_extend_table_info {
                          * ovn_extend_table's 'table_ids' bitmap. */
 };
 
-void ovn_extend_table_init(struct ovn_extend_table *table);
+void ovn_extend_table_init(struct ovn_extend_table *);
 
-void ovn_extend_table_destroy(struct ovn_extend_table *table);
+void ovn_extend_table_destroy(struct ovn_extend_table *);
 
-void ovn_extend_table_remove_existing(struct ovn_extend_table *table,
+void ovn_extend_table_remove_existing(struct ovn_extend_table *,
                                       struct ovs_list *msgs);
 
 struct ovn_extend_table_info *ovn_extend_table_lookup(
     struct hmap *, const struct ovn_extend_table_info *);
 
 /* Move the contents of desired to existing. */
-void ovn_extend_table_move(struct ovn_extend_table *table);
+void ovn_extend_table_move(struct ovn_extend_table *);
 
-void ovn_extend_table_clear(struct ovn_extend_table *table, bool existing);
+void ovn_extend_table_clear(struct ovn_extend_table *, bool existing);
 
-uint32_t ovn_extend_table_assign_id(struct ovn_extend_table *table,
-                                    struct ds *ds);
+uint32_t ovn_extend_table_assign_id(struct ovn_extend_table *,
+                                    struct ds *);
 
 /* Iterates 'DESIRED' through all of the 'ovn_extend_table_info's in
  * 'TABLE'->desired that are not in 'TABLE'->existing.  (The loop body
-- 
2.10.2



More information about the dev mailing list