Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jan 2011 09:00:12 -0800
From:      Julian Elischer <julian@freebsd.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r216954 - head/sys/kern
Message-ID:  <4D23521C.8020506@freebsd.org>
In-Reply-To: <201101041316.p04DGSo6037042@svn.freebsd.org>
References:  <201101041316.p04DGSo6037042@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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);
>




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