Commit 98526bd2 authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Remove unused fd arg from open_fe_fd

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c58abfd0
...@@ -148,7 +148,7 @@ int prepare_fd_pid(int pid) ...@@ -148,7 +148,7 @@ int prepare_fd_pid(int pid)
return ret; return ret;
} }
static int open_fe_fd(struct fdinfo_entry *fe, int fd) static int open_fe_fd(struct fdinfo_entry *fe)
{ {
struct reg_file_entry rfe; struct reg_file_entry rfe;
char path[PATH_MAX]; char path[PATH_MAX];
...@@ -201,7 +201,7 @@ static int restore_cwd(struct fdinfo_entry *fe, int fd) ...@@ -201,7 +201,7 @@ static int restore_cwd(struct fdinfo_entry *fe, int fd)
{ {
int cfd; int cfd;
cfd = open_fe_fd(fe, fd); cfd = open_fe_fd(fe);
if (cfd < 0) if (cfd < 0)
return cfd; return cfd;
...@@ -230,7 +230,7 @@ static int restore_exe_early(struct fdinfo_entry *fe, int fd) ...@@ -230,7 +230,7 @@ static int restore_exe_early(struct fdinfo_entry *fe, int fd)
if (self_exe_fd < 0) if (self_exe_fd < 0)
return self_exe_fd; return self_exe_fd;
tmp = open_fe_fd(fe, fd); tmp = open_fe_fd(fe);
if (tmp < 0) if (tmp < 0)
return tmp; return tmp;
...@@ -312,7 +312,7 @@ static int open_fd(int pid, struct fdinfo_entry *fe, ...@@ -312,7 +312,7 @@ static int open_fd(int pid, struct fdinfo_entry *fe,
if ((fi->pid != pid) || (fe->addr != fi->addr)) if ((fi->pid != pid) || (fe->addr != fi->addr))
return 0; return 0;
tmp = open_fe_fd(fe, fdinfo_fd); tmp = open_fe_fd(fe);
if (tmp < 0) if (tmp < 0)
return -1; return -1;
...@@ -394,7 +394,7 @@ static int open_fmap(int pid, struct fdinfo_entry *fe, int fd) ...@@ -394,7 +394,7 @@ static int open_fmap(int pid, struct fdinfo_entry *fe, int fd)
struct fmap_fd *new; struct fmap_fd *new;
int tmp; int tmp;
tmp = open_fe_fd(fe, fd); tmp = open_fe_fd(fe);
if (tmp < 0) if (tmp < 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