From 3842c6341da9b12103681a19835bf3c28c3eba1c Mon Sep 17 00:00:00 2001 From: Kirill Tkhai Date: Mon, 5 Jun 2017 20:24:09 +0300 Subject: [PATCH] shmem: Remove pid argument of shmem_wait_and_open() It's unused and it's rewritten in shmem_wait_and_open(), and it just confuses a reader. So, kill it. Signed-off-by: Kirill Tkhai --- criu/shmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/shmem.c b/criu/shmem.c index 69165b64c..af3b4c8f5 100644 --- a/criu/shmem.c +++ b/criu/shmem.c @@ -436,7 +436,7 @@ int collect_shmem(int pid, struct vma_area *vma) return 0; } -static int shmem_wait_and_open(int pid, struct shmem_info *si, VmaEntry *vi) +static int shmem_wait_and_open(struct shmem_info *si, VmaEntry *vi) { char path[128]; int ret; @@ -515,7 +515,7 @@ static int open_shmem(int pid, struct vma_area *vma) BUG_ON(si->pid == SYSVIPC_SHMEM_PID); if (si->pid != pid) - return shmem_wait_and_open(pid, si, vi); + return shmem_wait_and_open(si, vi); if (si->fd != -1) { f = dup(si->fd);