Commit 1c8ab40e authored by Pavel Emelyanov's avatar Pavel Emelyanov

proc: Sanitate empty lines

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e651a6eb
...@@ -178,7 +178,6 @@ int close_pid_proc(void) ...@@ -178,7 +178,6 @@ int close_pid_proc(void)
void close_proc() void close_proc()
{ {
close_pid_proc(); close_pid_proc();
close_service_fd(PROC_FD_OFF); close_service_fd(PROC_FD_OFF);
} }
...@@ -192,8 +191,8 @@ int set_proc_fd(int fd) ...@@ -192,8 +191,8 @@ int set_proc_fd(int fd)
static int open_proc_sfd(char *path) static int open_proc_sfd(char *path)
{ {
int fd, ret; int fd, ret;
close_proc();
close_proc();
fd = open(path, O_DIRECTORY | O_RDONLY); fd = open(path, O_DIRECTORY | O_RDONLY);
if (fd == -1) { if (fd == -1) {
pr_err("Can't open %s\n", path); pr_err("Can't open %s\n", path);
...@@ -254,8 +253,9 @@ int do_open_proc(pid_t pid, int flags, const char *fmt, ...) ...@@ -254,8 +253,9 @@ int do_open_proc(pid_t pid, int flags, const char *fmt, ...)
{ {
char path[128]; char path[128];
va_list args; va_list args;
int dirfd = open_pid_proc(pid); int dirfd;
dirfd = open_pid_proc(pid);
if (dirfd < 0) if (dirfd < 0)
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment