Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2016 09:11:18 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299527 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201605120911.u4C9BIgs036349@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu May 12 09:11:18 2016
New Revision: 299527
URL: https://svnweb.freebsd.org/changeset/base/299527

Log:
  Remove redundant "task_struct_set()".
  This is done by the "linux_kthread_fn()".
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/kthread.h

Modified: head/sys/compat/linuxkpi/common/include/linux/kthread.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kthread.h	Thu May 12 09:06:54 2016	(r299526)
+++ head/sys/compat/linuxkpi/common/include/linux/kthread.h	Thu May 12 09:11:18 2016	(r299527)
@@ -81,8 +81,7 @@ linux_kthread_create(int (*threadfn)(voi
 	    0, 0, fmt, ## __VA_ARGS__)) {				\
 		kfree(_task);						\
 		_task = NULL;						\
-	} else								\
-		task_struct_set(_task->task_thread, _task);		\
+	}								\
 	_task;								\
 })
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605120911.u4C9BIgs036349>