Fix breakage in 'camcontrol defects' introduced in rev 1.34 (the new error

recovery code) back in March, 2001.

In effect, this brain-o would cause 'camcontrol defects' to always return
an error.

Pointed out by:	joerg
Tested by:	mdodd
This commit is contained in:
Kenneth D. Merry 2001-12-05 03:41:40 +00:00
parent 9d981897e4
commit 8a8e67f308
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87378

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 1998, 1999, 2000 Kenneth D. Merry
* Copyright (c) 1997, 1998, 1999, 2000, 2001 Kenneth D. Merry
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -1291,7 +1291,7 @@ readdefects(struct cam_device *device, int argc, char **argv,
CAM_EPF_ALL, stderr);
goto defect_bailout;
}
} else {
} else if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
error = 1;
warnx("Error returned from read defect data command");
if (arglist & CAM_ARG_VERBOSE)