[ovs-dev] [PATCH] ovsdb-data: Drop redundant initialization from ovsdb_datum_apply_diff().
Ben Pfaff
blp at ovn.org
Tue Sep 25 04:32:49 UTC 2018
The call to ovsdb_datum_diff() initializes 'new', so it's not necessary to
also do it in ovsdb_datum_apply_diff().
Found by inspection.
Signed-off-by: Ben Pfaff <blp at ovn.org>
---
lib/ovsdb-data.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c
index 1e523f29cb87..08b94cafa737 100644
--- a/lib/ovsdb-data.c
+++ b/lib/ovsdb-data.c
@@ -2121,7 +2121,6 @@ ovsdb_datum_apply_diff(struct ovsdb_datum *new,
const struct ovsdb_datum *diff,
const struct ovsdb_type *type)
{
- ovsdb_datum_init_empty(new);
ovsdb_datum_diff(new, old, diff, type);
/* Make sure member size of 'new' conforms to type. */
--
2.16.1
More information about the dev
mailing list