Minor refactoring of code block.
MFC after: 1 day
This commit is contained in:
parent
f94357dba9
commit
373e66ec57
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user