提交 f8881000 编写于 作者: B Bartlomiej Zolnierkiewicz

ide: remove superfluous check from ide_disk_special()

This condition is checked by both ide_disk_init_mult_count()
and set_multcount() so no need to do it again in ide_disk_special().
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 730616b2
...@@ -540,8 +540,6 @@ static ide_startstop_t ide_disk_special(ide_drive_t *drive) ...@@ -540,8 +540,6 @@ static ide_startstop_t ide_disk_special(ide_drive_t *drive)
ide_tf_set_restore_cmd(drive, &args.tf); ide_tf_set_restore_cmd(drive, &args.tf);
} else if (s->b.set_multmode) { } else if (s->b.set_multmode) {
s->b.set_multmode = 0; s->b.set_multmode = 0;
if (drive->mult_req > drive->id->max_multsect)
drive->mult_req = drive->id->max_multsect;
ide_tf_set_setmult_cmd(drive, &args.tf); ide_tf_set_setmult_cmd(drive, &args.tf);
} else if (s->all) { } else if (s->all) {
int special = s->all; int special = s->all;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册