diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-09 18:30:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-09 18:30:18 +0100 |
commit | 3963cea3b0d86e32a32937bee54a3eed713563fd (patch) | |
tree | 7e04fab5c143402ae7f2fb00ba354a35621b424c | |
parent | d2268a20a0bf99c5d26bee9048aa48b377c72949 (diff) |
fsck: no need for a temporary variable
-rw-r--r-- | src/fsckd/fsckd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fsckd/fsckd.c b/src/fsckd/fsckd.c index 4a61d80a18..ae56fe60fd 100644 --- a/src/fsckd/fsckd.c +++ b/src/fsckd/fsckd.c @@ -160,7 +160,7 @@ static int plymouth_feedback_handler(sd_event_source *s, int fd, uint32_t revent static int send_message_plymouth_socket(int plymouth_fd, const char *message, bool update) { _cleanup_free_ char *packet = NULL; - int r, n; + int n; char mode = 'M'; if (update) @@ -168,10 +168,9 @@ static int send_message_plymouth_socket(int plymouth_fd, const char *message, bo if (asprintf(&packet, "%c\002%c%s%n", mode, (int) (strlen(message) + 1), message, &n) < 0) return log_oom(); - r = loop_write(plymouth_fd, packet, n + 1, true); - return r; -} + return loop_write(plymouth_fd, packet, n + 1, true); +} static int send_message_plymouth(Manager *m, const char *message) { int r; |