]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
vhost_task_create: kill unnecessary .exit_signal initialization
authorOleg Nesterov <oleg@redhat.com>
Sun, 22 Mar 2026 15:19:55 +0000 (16:19 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2026 06:17:00 +0000 (02:17 -0400)
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.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <acAIm732QPFZs15C@redhat.com>

kernel/vhost_task.c

index 3f1ed7ef058282b67313ae286de42dc6a659929c..3717885a5992a5a82f0c5c5494ae90add08c5113 100644 (file)
@@ -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,