diff options
author | kib <kib@FreeBSD.org> | 2016-03-12 17:17:34 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-03-12 17:17:34 +0000 |
commit | 3e19d6cd95416827bc3c14cbdff461c496d69ac9 (patch) | |
tree | 7ab3e1215810f0034edaa3044032388cfa0f8635 /sys/kern | |
parent | ec1f9b79e457080b7f42a5f3c20592807f824007 (diff) | |
download | FreeBSD-src-3e19d6cd95416827bc3c14cbdff461c496d69ac9.zip FreeBSD-src-3e19d6cd95416827bc3c14cbdff461c496d69ac9.tar.gz |
MFC r295488:
Finish r173600. There is no need to test a condition if both cases
result in the same value.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_turnstile.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 221916c..20614aa 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.c @@ -1027,8 +1027,7 @@ print_thread(struct thread *td, const char *prefix) { 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 char *prefix) */ 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, const char *prefix) */ 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"); |