[CRIU] [PATCH] pie/restorer: remove unused parameter frm restore_thread_common

Dmitry Safonov dsafonov at virtuozzo.com
Wed Mar 16 11:46:21 PDT 2016


Since commit 22396f769061 ("restore: construct sigframe in crtools")
sigframe is unused in restore_thread_common, as restore gpregs/fpu regs
now does construct_sigframe.

Impact: cleanup

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 criu/pie/restorer.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/criu/pie/restorer.c b/criu/pie/restorer.c
index f7bde75..1ac5e7e 100644
--- a/criu/pie/restorer.c
+++ b/criu/pie/restorer.c
@@ -394,8 +394,7 @@ die:
 	return -1;
 }
 
-static int restore_thread_common(struct rt_sigframe *sigframe,
-		struct thread_restore_args *args)
+static int restore_thread_common(struct thread_restore_args *args)
 {
 	sys_set_tid_address((int *)decode_pointer(args->clear_tid_addr));
 
@@ -452,7 +451,7 @@ long __export_restore_thread(struct thread_restore_args *args)
 
 	rt_sigframe = (void *)args->mem_zone.rt_sigframe;
 
-	if (restore_thread_common(rt_sigframe, args))
+	if (restore_thread_common(args))
 		goto core_restore_end;
 
 	ret = restore_creds(args->creds_args, args->ta->proc_fd);
@@ -1142,7 +1141,7 @@ long __export_restore_task(struct task_restore_args *args)
 	 */
 	rt_sigframe = (void *)args->t->mem_zone.rt_sigframe;
 
-	if (restore_thread_common(rt_sigframe, args->t))
+	if (restore_thread_common(args->t))
 		goto core_restore_end;
 
 	/*
-- 
2.7.2



More information about the CRIU mailing list