summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2016-02-18 15:12:52 +0000
committerimp <imp@FreeBSD.org>2016-02-18 15:12:52 +0000
commitd727dc043e06390530c308d75fec9a7018fdf8c9 (patch)
treef1c40224ea3cba0bdc66afdfbe2f00aeb719f9a8 /sys/cam
parent7b0a8f7745a391f822dfb41b7ced74931ac387a6 (diff)
downloadFreeBSD-src-d727dc043e06390530c308d75fec9a7018fdf8c9.zip
FreeBSD-src-d727dc043e06390530c308d75fec9a7018fdf8c9.tar.gz
Remove a stray else. It isn't needed (due to the return at the end of
the if statement it pairs with). While not an error today, a careless edit in the future could cause problems (though given the nature of this specific code, the problems quite likely would be some variation of "most direct access SCSI storage devices won't attach," which is unlikely to go unnoticed). PVS-Studio: V705
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_da.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 0a7f627..9d39182 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -3228,7 +3228,8 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
softc->state = DA_STATE_PROBE_RC;
xpt_schedule(periph, priority);
return;
- } else
+ }
+
/*
* Attach to anything that claims to be a
* direct access or optical disk device,
OpenPOWER on IntegriCloud