Code

virt plugin: Fix indentation and some whitespace.
[collectd.git] / src / lpar.c
index 0e32c834506f6aa2cf85b48643e3c5f10ba5c4ae..69a56e1cdea3e9508c0b3bc14ab5aace5a622deb 100644 (file)
@@ -123,10 +123,6 @@ static void lpar_submit (const char *type_instance, double value)
                sstrncpy (vl.host, serial, sizeof (vl.host));
                sstrncpy (vl.plugin_instance, hostname_g, sizeof (vl.plugin));
        }
-       else
-       {
-               sstrncpy (vl.host, hostname_g, sizeof (vl.host));
-       }
        sstrncpy (vl.plugin, "lpar", sizeof (vl.plugin));
        sstrncpy (vl.type, "vcpu", sizeof (vl.type));
        sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));