diff options
author | 2013-03-31 11:37:40 +0000 | |
---|---|---|
committer | 2013-03-31 11:37:40 +0000 | |
commit | 820ef7249cd7057b1d7d24fc5636fb84d1017ed1 (patch) | |
tree | 6943075e8bf6fd655e83c1b56d249bac91751b90 /sys/dev/softraid.c | |
parent | install the proper 5.16.3 perldelta file, spotted by espie@ (diff) | |
download | wireguard-openbsd-820ef7249cd7057b1d7d24fc5636fb84d1017ed1.tar.xz wireguard-openbsd-820ef7249cd7057b1d7d24fc5636fb84d1017ed1.zip |
The return value of sd_free_resources() is never checked and all of the
implementations only ever returned zero. Change the return value from
int to void instead of pretending it might mean something.
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index f582fa31f46..c85dc829ceb 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.297 2013/03/31 11:30:59 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.298 2013/03/31 11:37:40 jsing Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -118,7 +118,7 @@ void sr_discipline_free(struct sr_discipline *); void sr_discipline_shutdown(struct sr_discipline *, int); int sr_discipline_init(struct sr_discipline *, int); int sr_alloc_resources(struct sr_discipline *); -int sr_free_resources(struct sr_discipline *); +void sr_free_resources(struct sr_discipline *); void sr_set_chunk_state(struct sr_discipline *, int, int); void sr_set_vol_state(struct sr_discipline *); @@ -4198,13 +4198,11 @@ sr_alloc_resources(struct sr_discipline *sd) return (0); } -int +void sr_free_resources(struct sr_discipline *sd) { sr_wu_free(sd); sr_ccb_free(sd); - - return (0); } void |