summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-09-10 15:44:44 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-09-10 15:44:44 +0000
commit36b81a96f30f9e7f1b46929bcd67c02baf8fef6e (patch)
tree92ab79e088c9ecafb42589b2cfb81cc0a061e7ba
parenteeaff36d3dbf2d039dfe6ec328901878489fe8e7 (diff)
Last (?) small bit twiddling modernization.
-rw-r--r--sys/scsi/st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 804e4ad50e4..bbeafdd5805 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.158 2019/09/10 14:16:36 krw Exp $ */
+/* $OpenBSD: st.c,v 1.159 2019/09/10 15:44:43 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -451,7 +451,7 @@ stclose(dev_t dev, int flags, int mode, struct proc *p)
SC_DEBUG(link, SDEV_DB1, ("closing\n"));
- if ((st->flags & (ST_WRITTEN | ST_FM_WRITTEN)) == ST_WRITTEN)
+ if (ISSET(st->flags, ST_WRITTEN) && !ISSET(st->flags, ST_FM_WRITTEN))
st_write_filemarks(st, 1, 0);
switch (STMODE(dev)) {