diff options
author | mav <mav@FreeBSD.org> | 2012-06-20 18:35:36 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-06-20 18:35:36 +0000 |
commit | f62c46ca1bafa985a73b4b3f3efd36c806516564 (patch) | |
tree | ff160e1eda6f90408147ec507c12c810fa8c433c /sys/cam | |
parent | 056fd51a2215e8405ed46945b0eb147735753b9b (diff) | |
download | FreeBSD-src-f62c46ca1bafa985a73b4b3f3efd36c806516564.zip FreeBSD-src-f62c46ca1bafa985a73b4b3f3efd36c806516564.tar.gz |
Remove unused error variables in cdclose() and daclose().
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_cd.c | 3 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 2d64553..6908c93 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -1041,7 +1041,6 @@ cdclose(struct disk *dp) { struct cam_periph *periph; struct cd_softc *softc; - int error; periph = (struct cam_periph *)dp->d_drv1; if (periph == NULL) @@ -1050,7 +1049,7 @@ cdclose(struct disk *dp) softc = (struct cd_softc *)periph->softc; cam_periph_lock(periph); - if ((error = cam_periph_hold(periph, PRIBIO)) != 0) { + if (cam_periph_hold(periph, PRIBIO) != 0) { cam_periph_unlock(periph); cam_periph_release(periph); return (0); diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 450e0fa..34afda8 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -982,14 +982,13 @@ daclose(struct disk *dp) { struct cam_periph *periph; struct da_softc *softc; - int error; periph = (struct cam_periph *)dp->d_drv1; if (periph == NULL) return (0); cam_periph_lock(periph); - if ((error = cam_periph_hold(periph, PRIBIO)) != 0) { + if (cam_periph_hold(periph, PRIBIO) != 0) { cam_periph_unlock(periph); cam_periph_release(periph); return (0); |