diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-22 19:44:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-09-22 19:44:42 +0000 |
commit | c18854447133ab6aa12bdf2c2389b14e720303a9 (patch) | |
tree | 0a7d932b2630790f405ddd9518bf0f03a7f3f5e4 /sys/scsi/st.c | |
parent | 104ab0a9dc1ab33da8fd41da7af70486a96d069c (diff) |
Do not return an uninitialized value on success in stclose().
ok krw@
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r-- | sys/scsi/st.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 50ce51d0994..70e49277b7d 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -1,4 +1,4 @@ -/* $OpenBSD: st.c,v 1.84 2008/09/06 15:35:02 krw Exp $ */ +/* $OpenBSD: st.c,v 1.85 2008/09/22 19:44:41 miod Exp $ */ /* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */ /* @@ -534,7 +534,7 @@ stclose(dev_t dev, int flags, int mode, struct proc *p) { struct scsi_link *sc_link; struct st_softc *st; - int error; + int error = 0; st = stlookup(STUNIT(dev)); if (st == NULL) |