chiark / gitweb /
analyze: simplify things
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Nov 2013 15:38:21 +0000 (16:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Nov 2013 15:38:53 +0000 (16:38 +0100)
src/analyze/analyze.c

index b596cad..9becc72 100644 (file)
@@ -1123,7 +1123,6 @@ static int dump(sd_bus *bus, char **args) {
 static int set_log_level(sd_bus *bus, char **args) {
         _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
         int r;
-        const char* value;
 
         assert(bus);
         assert(args);
@@ -1133,8 +1132,6 @@ static int set_log_level(sd_bus *bus, char **args) {
                 return -E2BIG;
         }
 
-        value = args[0];
-
         r = sd_bus_set_property(
                         bus,
                         "org.freedesktop.systemd1",
@@ -1143,7 +1140,7 @@ static int set_log_level(sd_bus *bus, char **args) {
                         "LogLevel",
                         &error,
                         "s",
-                        value);
+                        args[0]);
         if (r < 0) {
                 log_error("Failed to issue method call: %s", bus_error_message(&error, -r));
                 return -EIO;