Conform to Tizen coding rule. 17/129917/3
authorMichal Bloch <m.bloch@samsung.com>
Thu, 18 May 2017 11:55:01 +0000 (13:55 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Thu, 25 May 2017 12:06:03 +0000 (14:06 +0200)
Change-Id: I4ddd7c32b43f00f2095e0c6a40a9135781a93228
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logutil/logutil.c
src/shared/queued_entry.c

index 516f764..4eb370b 100644 (file)
@@ -434,10 +434,11 @@ static void handle_pipe(struct fd_info **data_fds, int fd_count, int dump)
                        if (fdi->type != BINARY_FILE)
                                epoll_ctl(epollfd, EPOLL_CTL_DEL, fdi->fd, NULL);
 
-                       if (fdi->type == PIPE && dump) {
+                       if (fdi->type == PIPE && dump)
                                --pipes;
-                       else if (--fd_count <= 0)
+                       else if (--fd_count <= 0)
                                accepting_logs = 0;
+
                        if (r == 0)
                                continue;
                        else
index d9972c5..3b781a6 100644 (file)
@@ -325,9 +325,9 @@ static int parse_number(const char **cursor, void *user_data)
                || (errno != 0 && val == 0)) {
                return -EINVAL;
        }
-       if (endptr == *cursor) {
+       if (endptr == *cursor)
                return -EINVAL;
-       }
+
        *cursor = endptr;
        int *pid = (int *)user_data;
        if (pid)