svn commit: r237471 - stable/9/sys/cam/scsi
Alexander Motin
mav at FreeBSD.org
Sat Jun 23 07:48:01 UTC 2012
Author: mav
Date: Sat Jun 23 07:48:00 2012
New Revision: 237471
URL: http://svn.freebsd.org/changeset/base/237471
Log:
MFC r237336:
Remove unused error variables in cdclose() and daclose().
Modified:
stable/9/sys/cam/scsi/scsi_cd.c
stable/9/sys/cam/scsi/scsi_da.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/cam/scsi/scsi_cd.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_cd.c Sat Jun 23 07:46:33 2012 (r237470)
+++ stable/9/sys/cam/scsi/scsi_cd.c Sat Jun 23 07:48:00 2012 (r237471)
@@ -1043,7 +1043,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)
@@ -1052,7 +1051,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);
Modified: stable/9/sys/cam/scsi/scsi_da.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_da.c Sat Jun 23 07:46:33 2012 (r237470)
+++ stable/9/sys/cam/scsi/scsi_da.c Sat Jun 23 07:48:00 2012 (r237471)
@@ -984,14 +984,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);
More information about the svn-src-stable-9
mailing list