Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tprof make sure error is initialized before we retur...
details: https://anonhg.NetBSD.org/src/rev/81d16f32ca0d
branches: trunk
changeset: 372588:81d16f32ca0d
user: chs <chs%NetBSD.org@localhost>
date: Sun Dec 11 01:36:49 2022 +0000
description:
make sure error is initialized before we return it.
diffstat:
sys/dev/tprof/tprof.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 77a0d0e018a3 -r 81d16f32ca0d sys/dev/tprof/tprof.c
--- a/sys/dev/tprof/tprof.c Sat Dec 10 20:58:37 2022 +0000
+++ b/sys/dev/tprof/tprof.c Sun Dec 11 01:36:49 2022 +0000
@@ -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 @@
workqueue_enqueue(tprof_wq, &c->c_work, ci);
}
}
+ error = 0;
+
done:
return error;
}
Home |
Main Index |
Thread Index |
Old Index