diff options
author | le <le@FreeBSD.org> | 2005-01-21 18:24:20 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2005-01-21 18:24:20 +0000 |
commit | f7ba150b68306114aa6c3f04dd97e0457a428c72 (patch) | |
tree | fb75d37d80dc89c84b7dac836bff517e8956d80e /sys | |
parent | 0ac71b801ca7c883c4f382afbfcd7aaa5cf49d8b (diff) | |
download | FreeBSD-src-f7ba150b68306114aa6c3f04dd97e0457a428c72.zip FreeBSD-src-f7ba150b68306114aa6c3f04dd97e0457a428c72.tar.gz |
Don't initialize error with ENXIO as we might end up here when
the plex has no more consumers (e.g. orphaning).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/vinum/geom_vinum_plex.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/vinum/geom_vinum_plex.c b/sys/geom/vinum/geom_vinum_plex.c index 5e8aafb..9e77693 100644 --- a/sys/geom/vinum/geom_vinum_plex.c +++ b/sys/geom/vinum/geom_vinum_plex.c @@ -682,7 +682,6 @@ gv_plex_access(struct g_provider *pp, int dr, int dw, int de) gp = pp->geom; - error = ENXIO; LIST_FOREACH(cp, &gp->consumer, consumer) { error = g_access(cp, dr, dw, de); if (error) { @@ -694,7 +693,7 @@ gv_plex_access(struct g_provider *pp, int dr, int dw, int de) return (error); } } - return (error); + return (0); } static struct g_geom * |