svn commit: r299527 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Thu May 12 09:11:20 UTC 2016


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;								\
 })
 


More information about the svn-src-all mailing list