mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Minor refactoring of code block.
MFC after: 1 day
This commit is contained in:
parent
ae266f893f
commit
79592d52d5
1 changed files with 3 additions and 4 deletions
|
|
@ -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 a new issue