Module Name: src
Committed By: chs
Date: Sun Dec 11 01:36:49 UTC 2022
Modified Files:
src/sys/dev/tprof: tprof.c
Log Message:
make sure error is initialized before we return it.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/tprof/tprof.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/tprof/tprof.c
diff -u src/sys/dev/tprof/tprof.c:1.19 src/sys/dev/tprof/tprof.c:1.20
--- src/sys/dev/tprof/tprof.c:1.19 Thu Dec 1 00:32:52 2022
+++ src/sys/dev/tprof/tprof.c Sun Dec 11 01:36:49 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: tprof.c,v 1.19 2022/12/01 00:32:52 ryo Exp $ */
+/* $NetBSD: tprof.c,v 1.20 2022/12/11 01:36:49 chs Exp $ */
/*-
* Copyright (c)2008,2009,2010 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tprof.c,v 1.19 2022/12/01 00:32:52 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tprof.c,v 1.20 2022/12/11 01:36:49 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -404,6 +404,8 @@ tprof_start(tprof_countermask_t runmask)
workqueue_enqueue(tprof_wq, &c->c_work, ci);
}
}
+ error = 0;
+
done:
return error;
}