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
This commit is contained in:
parent
2a9aa1a646
commit
787db28adf
@ -3228,7 +3228,8 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
|
|||||||
softc->state = DA_STATE_PROBE_RC;
|
softc->state = DA_STATE_PROBE_RC;
|
||||||
xpt_schedule(periph, priority);
|
xpt_schedule(periph, priority);
|
||||||
return;
|
return;
|
||||||
} else
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Attach to anything that claims to be a
|
* Attach to anything that claims to be a
|
||||||
* direct access or optical disk device,
|
* direct access or optical disk device,
|
||||||
|
Loading…
Reference in New Issue
Block a user