svn commit: r216954 - head/sys/kern

Julian Elischer julian at freebsd.org
Tue Jan 4 17:15:04 UTC 2011


On 1/4/11 5:16 AM, John Baldwin wrote:
> Author: jhb
> Date: Tue Jan  4 13:16:28 2011
> New Revision: 216954
> URL: http://svn.freebsd.org/changeset/base/216954
>
> Log:
>    kproc_exit() is already marked __dead2 so a NOTREACHED comment here isn't
>    needed for lint.

yes but it IS good documentation when reading the code.
>
>    Submitted by:	bde
>
> Modified:
>    head/sys/kern/kern_kthread.c
>
> Modified: head/sys/kern/kern_kthread.c
> ==============================================================================
> --- head/sys/kern/kern_kthread.c	Tue Jan  4 13:02:52 2011	(r216953)
> +++ head/sys/kern/kern_kthread.c	Tue Jan  4 13:16:28 2011	(r216954)
> @@ -329,7 +329,6 @@ kthread_exit(void)
>   		PROC_UNLOCK(p);
>   		rw_wunlock(&tidhash_lock);
>   		kproc_exit(0);
> -		/* NOTREACHED */
>   	}
>   	LIST_REMOVE(curthread, td_hash);
>   	rw_wunlock(&tidhash_lock);
>



More information about the svn-src-head mailing list