Commit 6e562b0c authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Remove unused fn

It was used in old code, now it can be dropped
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 637a95f8
...@@ -281,22 +281,6 @@ static int restore_exe_early(struct fdinfo_entry *fe, int fd) ...@@ -281,22 +281,6 @@ static int restore_exe_early(struct fdinfo_entry *fe, int fd)
return reopen_fd_as(self_exe_fd, tmp); return reopen_fd_as(self_exe_fd, tmp);
} }
struct fdinfo_list_entry *find_fdinfo_list_entry(int pid, int fd, struct list_head *fd_list)
{
struct fdinfo_list_entry *fle;
int found = 0;
list_for_each_entry(fle, fd_list, list) {
if (fle->fd == fd && fle->pid == pid) {
found = 1;
break;
}
}
BUG_ON(found == 0);
return fle;
}
static inline void transport_name_gen(struct sockaddr_un *addr, int *len, static inline void transport_name_gen(struct sockaddr_un *addr, int *len,
int pid, long fd) int pid, long fd)
{ {
......
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