Fix a bug in camcontrol that caused 'camcontrol start' to not work.

Noticed by:	Philippe Regnauld <regnauld@deepo.prosa.dk>
This commit is contained in:
Kenneth D. Merry 1998-10-13 16:23:26 +00:00
parent d2165c2f7d
commit 2e2b088cc2

View File

@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: camcontrol.c,v 1.2 1998/10/02 21:00:38 ken Exp $
* $Id: camcontrol.c,v 1.3 1998/10/03 19:15:53 ken Exp $
*/
#include <sys/ioctl.h>
@ -448,11 +448,6 @@ scsistart(struct cam_device *device, int startstop, int loadeject,
union ccb *ccb;
int error = 0;
if ((startstop < 0) || (startstop > 1)) {
warnx("SCSI start/stop argument must be 0 or 1");
return(1);
}
ccb = cam_getccb(device);
scsi_start_stop(&ccb->csio,