diff options
| author | chs <chs@NetBSD.org> | 2022-12-11 01:36:49 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2022-12-11 01:36:49 +0000 |
| commit | 5a8af1aa1ec5f32ecb324a8431fec27a0ab0f855 (patch) | |
| tree | 36235c465121c1e23cf1f8a002b6e4f4351b8d55 /sys/dev | |
| parent | 9c9bd8a70ea22b1ddcf4d5534dafc667f1b9943c (diff) | |
make sure error is initialized before we return it.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/tprof/tprof.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/tprof/tprof.c b/sys/dev/tprof/tprof.c index 0fd800cae97..c2837d160f5 100644 --- a/sys/dev/tprof/tprof.c +++ b/sys/dev/tprof/tprof.c @@ -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; } |
