Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/mail Remove an unnecessary test for NULL (the same t...



details:   https://anonhg.NetBSD.org/src/rev/182e598a925d
branches:  trunk
changeset: 1027731:182e598a925d
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Dec 17 15:29:44 2021 +0000

description:
Remove an unnecessary test for NULL (the same thing is done in the
following lines) along with an incorrect return of nothing if it is
found (the following version correctly returns NULL).   Should unbreak build.

diffstat:

 usr.bin/mail/thread.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 206bda641fd6 -r 182e598a925d usr.bin/mail/thread.c
--- a/usr.bin/mail/thread.c     Fri Dec 17 13:50:10 2021 +0000
+++ b/usr.bin/mail/thread.c     Fri Dec 17 15:29:44 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: thread.c,v 1.13 2021/12/17 13:14:54 christos Exp $     */
+/*     $NetBSD: thread.c,v 1.14 2021/12/17 15:29:44 kre Exp $  */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef __lint__
-__RCSID("$NetBSD: thread.c,v 1.13 2021/12/17 13:14:54 christos Exp $");
+__RCSID("$NetBSD: thread.c,v 1.14 2021/12/17 15:29:44 kre Exp $");
 #endif /* not __lint__ */
 
 #include <assert.h>
@@ -594,8 +594,6 @@
 
        if (mp == NULL)
                mp = current_thread.t_head;
-       if (mp == NULL)
-               return;
 
        if (mp == NULL)
                return NULL;



Home | Main Index | Thread Index | Old Index