summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2013-07-19 17:14:13 +0000
committerkrw <krw@openbsd.org>2013-07-19 17:14:13 +0000
commit1866ce7144731de1762cf25e49d30ebd53f5a8ca (patch)
tree4e14aca49fcbca212685a13dbf6a6d0f88f49310 /sys/dev/softraid.c
parentMove the filter infrastructure forward. (diff)
downloadwireguard-openbsd-1866ce7144731de1762cf25e49d30ebd53f5a8ca.tar.xz
wireguard-openbsd-1866ce7144731de1762cf25e49d30ebd53f5a8ca.zip
Don't use uninitialized variable when a simple 0 will do.
Found by Maxime Villard. ok jsing@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 8a7ea44b8e6..ff3d260d184 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.310 2013/07/01 11:33:21 jsing Exp $ */
+/* $OpenBSD: softraid.c,v 1.311 2013/07/19 17:14:13 krw Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1858,7 +1858,7 @@ sr_detach(struct device *self, int flags)
sc->sc_scsibus = NULL;
}
- return (rv);
+ return (0);
}
void