Minor refactoring of code block.

MFC after:		1 day
This commit is contained in:
hselasky 2015-01-19 07:29:07 +00:00
parent f94357dba9
commit 373e66ec57

View File

@ -3101,11 +3101,10 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
* give them an 'illegal' value we'll avoid that
* here.
*/
if (block_size == 0 && maxsector == 0) {
block_size = 512;
maxsector = -1;
} else if (block_size == 0) {
if (block_size == 0) {
block_size = 512;
if (maxsector == 0)
maxsector = -1;
}
if (block_size >= MAXPHYS) {
xpt_print(periph->path,