summaryrefslogtreecommitdiff
path: root/sys/scsi/cd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-08-17 15:31:42 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-08-17 15:31:42 +0000
commitd0b1432d060658640533323842e5f657d9030510 (patch)
tree3b6ba2a7a8196c5dc318d53ca0813a2d3d2dfc1f /sys/scsi/cd.c
parent990f954b99a885ea2cb2d7727da4084c89fd224d (diff)
Nuke some unused variables, tweak some declarations and
variable names into a consistant idiom.
Diffstat (limited to 'sys/scsi/cd.c')
-rw-r--r--sys/scsi/cd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index c9b316861bd..2337d937cf5 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.224 2019/01/20 20:28:37 krw Exp $ */
+/* $OpenBSD: cd.c,v 1.225 2019/08/17 15:31:41 krw Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -236,7 +236,6 @@ int
cdactivate(struct device *self, int act)
{
struct cd_softc *sc = (struct cd_softc *)self;
- int rv = 0;
switch (act) {
case DVACT_RESUME:
@@ -254,7 +253,7 @@ cdactivate(struct device *self, int act)
scsi_xsh_del(&sc->sc_xsh);
break;
}
- return (rv);
+ return (0);
}
int