svn commit: r345805 - head/sys/cam
Alexander Motin
mav at FreeBSD.org
Tue Sep 3 14:06:26 UTC 2019
Hi.
On 02.04.2019 12:43, Enji Cooper wrote:
>> On Apr 2, 2019, at 07:46, Alexander Motin <mav at freebsd.org> wrote:
>> @@ -1595,14 +1596,21 @@ camperiphscsistatuserror(union ccb *ccb, union ccb **o
>> * Restart the queue after either another
>> * command completes or a 1 second timeout.
>> */
>> - if ((sense_flags & SF_RETRY_BUSY) != 0 ||
>> - (ccb->ccb_h.retry_count--) > 0) {
>> + periph = xpt_path_periph(ccb->ccb_h.path);
>> + if (periph->flags & CAM_PERIPH_INVALID) {
>
> Is there a reason why this style is inconsistent with the other part of the change by not explicitly testing for “!= 0”?
Not really, I've just copied this chunk from other place where it was
this way. Bug I generally prefer more compact code where possible, and
I don't see style(9) saying it is bad to do so here. But if it hurts
somebody, I see no problem to change it.
--
Alexander Motin
More information about the svn-src-all
mailing list