Skip to contentSkip to conversation

vhost_task_create: kill unnecessary .exit_signal initialization

PATCH In review Oleg Nesterov 2 participants 2 messages Mar 22 – Mar 23 virtio host (vhost)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vhost_task_create: kill unnecessary .exit_signal initialization

The only reason for this janitorial change is that this initialization adds unnecessary noise to "git grep exit_signal".

args.exit_signal has no effect with CLONE_THREAD, not to mention it is zero-initialized by the compiler anyway.

---
 kernel/vhost_task.c | 1 -
 1 file changed, 1 deletion(-)
kernel/vhost_task.c +0 -1
index 3f1ed7ef0582..3717885a5992 100644
@@ -123,7 +123,6 @@ struct vhost_task *vhost_task_create(bool (*fn)(void *),
 	struct kernel_clone_args args = {
 		.flags		= CLONE_FS | CLONE_UNTRACED | CLONE_VM |
 				  CLONE_THREAD | CLONE_SIGHAND,
-		.exit_signal	= 0,
 		.fn		= vhost_task_fn,
 		.name		= name,
 		.user_worker	= 1,
Signature · 1 line
2.52.0
Acked-by on v1 1/1
#1 lore raw
Quoted 25 lines · Oleg Nesterov

The only reason for this janitorial change is that this initialization adds unnecessary noise to "git grep exit_signal".

args.exit_signal has no effect with CLONE_THREAD, not to mention it is zero-initialized by the compiler anyway.

---
 kernel/vhost_task.c | 1 -
 1 file changed, 1 deletion(-)
kernel/vhost_task.c +0 -2
index 3f1ed7ef0582..3717885a5992 100644
@@ -123,7 +123,6 @@ struct vhost_task *vhost_task_create(bool (*fn)(void *),
        struct kernel_clone_args args = {
                .flags          = CLONE_FS | CLONE_UNTRACED | CLONE_VM |
                                  CLONE_THREAD | CLONE_SIGHAND,
-               .exit_signal    = 0,
                .fn             = vhost_task_fn,
                .name           = name,
                .user_worker    = 1,
--
Quoted 3 lines

2.52.0

Thanks