Module Name:    src
Committed By:   kre
Date:           Fri Dec 17 15:29:44 UTC 2021

Modified Files:
        src/usr.bin/mail: thread.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/mail/thread.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/mail/thread.c
diff -u src/usr.bin/mail/thread.c:1.13 src/usr.bin/mail/thread.c:1.14
--- src/usr.bin/mail/thread.c:1.13	Fri Dec 17 13:14:54 2021
+++ src/usr.bin/mail/thread.c	Fri Dec 17 15:29:44 2021
@@ -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 @@ first_visible_message(struct message *mp
 
 	if (mp == NULL)
 		mp = current_thread.t_head;
-	if (mp == NULL)
-		return;
 
 	if (mp == NULL)
 		return NULL;

Reply via email to