Index | Thread | Search

From:
Thorsten Blum <thorsten.blum@toblux.com>
Subject:
kern_timeout: Drop self-assignment in db_show_timeout
To:
tech@openbsd.org
Date:
Sun, 12 Oct 2025 20:00:00 +0200

Download raw body.

Thread
Index: kern/kern_timeout.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_timeout.c,v
retrieving revision 1.112
diff -u -p -r1.112 kern_timeout.c
--- kern/kern_timeout.c	28 Jul 2025 05:25:44 -0000	1.112
+++ kern/kern_timeout.c	12 Oct 2025 16:01:05 -0000
@@ -980,7 +980,8 @@ db_show_timeout(struct timeout *to, stru
 	int width = sizeof(long) * 2;
 
 	db_find_sym_and_offset((vaddr_t)to->to_func, &name, &offset);
-	name = name ? name : "?";
+	if (!name)
+		name = "?";
 	if (bucket == &timeout_new)
 		where = "new";
 	else if (bucket == &timeout_todo)