From 15c98ff2f1159f39e6c8fc585893734e4f74aa81 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 12 May 2016 09:11:18 +0000 Subject: [PATCH] Remove redundant "task_struct_set()". This is done by the "linux_kthread_fn()". MFC after: 1 week Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/linux/kthread.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/kthread.h b/sys/compat/linuxkpi/common/include/linux/kthread.h index 61cdc3b8060a..2e0da123d528 100644 --- a/sys/compat/linuxkpi/common/include/linux/kthread.h +++ b/sys/compat/linuxkpi/common/include/linux/kthread.h @@ -81,8 +81,7 @@ linux_kthread_create(int (*threadfn)(void *data), void *data) 0, 0, fmt, ## __VA_ARGS__)) { \ kfree(_task); \ _task = NULL; \ - } else \ - task_struct_set(_task->task_thread, _task); \ + } \ _task; \ })