=?utf-8?q?=5Bnetcf-devel=5D?=(Patch) Fix dead assignment in function modprobed_alias_bond
by Han Han
commit 41788f6f6a0c3a2c7b30cc2818e118b828ee2a70 (HEAD -> master)
Author: Han Han <hhan(a)redhat.com>
Date: Mon Jul 31 16:21:27 2017 +0800
Fix dead assignment in function modprobed_alias_bond
Drop the line since value stored to 'r' is not used.
diff --git a/src/dutil_linux.c b/src/dutil_linux.c
index 742153a..ff51cb8 100644
--- a/src/dutil_linux.c
+++ b/src/dutil_linux.c
@@ -485,7 +485,6 @@ void modprobed_alias_bond(struct netcf *ncf, const char
*name) {
r = aug_insert(aug, path, "alias", 0);
ERR_COND_BAIL(r < 0, ncf, EOTHER);
}
- r = aug_set(aug, path, name);
FREE(path);
}
--
Han Han
Associate Quality Engineer
Redhat
Email: hhan(a)redhat.com
Phone: +861065339333
6 years, 9 months