summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-09-07 02:30:41 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-09-07 02:30:41 +0000
commit7cf1589de1cd5bf4878a7803b4b648f8d43ab31b (patch)
treeab25e552e3a16cac554d73fdae9f950e34419770 /sys/scsi
parent28404059dab21ed20cb37e9a5cf6972128152214 (diff)
Tweak some comments and code layout to make MTSETBSIZE and MTSETDENSITY
cases look the same.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/st.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 3213ca26549..231fb8502d4 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.149 2019/09/07 02:07:08 krw Exp $ */
+/* $OpenBSD: st.c,v 1.150 2019/09/07 02:30:40 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -1169,7 +1169,7 @@ stioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p)
case MTERASE: /* erase volume */
error = st_erase(st, number, flags);
break;
- case MTSETBSIZ: /* Set block size for device */
+ case MTSETBSIZ: /* Set block size for device and mode. */
if (number == 0) {
st->flags &= ~ST_FIXEDBLOCKS;
} else {
@@ -1184,12 +1184,12 @@ stioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p)
st->blksize = number;
goto try_new_value;
- case MTSETDNSTY: /* Set density for device and mode */
+ case MTSETDNSTY: /* Set density for device and mode. */
if (number < 0 || number > SCSI_MAX_DENSITY_CODE) {
error = EINVAL;
break;
- } else
- st->density = number;
+ }
+ st->density = number;
goto try_new_value;
default: