Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2016 17:17:34 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r296728 - stable/10/sys/kern
Message-ID:  <201603121717.u2CHHYfr038350@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Mar 12 17:17:34 2016
New Revision: 296728
URL: https://svnweb.freebsd.org/changeset/base/296728

Log:
  MFC r295488:
  Finish r173600.  There is no need to test a condition if both cases
  result in the same value.

Modified:
  stable/10/sys/kern/subr_turnstile.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/subr_turnstile.c
==============================================================================
--- stable/10/sys/kern/subr_turnstile.c	Sat Mar 12 17:12:00 2016	(r296727)
+++ stable/10/sys/kern/subr_turnstile.c	Sat Mar 12 17:17:34 2016	(r296728)
@@ -1027,8 +1027,7 @@ print_thread(struct thread *td, const ch
 {
 
 	db_printf("%s%p (tid %d, pid %d, \"%s\")\n", prefix, td, td->td_tid,
-	    td->td_proc->p_pid, td->td_name[0] != '\0' ? td->td_name :
-	    td->td_name);
+	    td->td_proc->p_pid, td->td_name);
 }
 
 static void
@@ -1110,8 +1109,7 @@ print_lockchain(struct thread *td, const
 	 */
 	while (!db_pager_quit) {
 		db_printf("%sthread %d (pid %d, %s) ", prefix, td->td_tid,
-		    td->td_proc->p_pid, td->td_name[0] != '\0' ? td->td_name :
-		    td->td_name);
+		    td->td_proc->p_pid, td->td_name);
 		switch (td->td_state) {
 		case TDS_INACTIVE:
 			db_printf("is inactive\n");
@@ -1194,8 +1192,7 @@ print_sleepchain(struct thread *td, cons
 	 */
 	while (!db_pager_quit) {
 		db_printf("%sthread %d (pid %d, %s) ", prefix, td->td_tid,
-		    td->td_proc->p_pid, td->td_name[0] != '\0' ? td->td_name :
-		    td->td_name);
+		    td->td_proc->p_pid, td->td_name);
 		switch (td->td_state) {
 		case TDS_INACTIVE:
 			db_printf("is inactive\n");



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