diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 22:39:18 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 22:39:18 +0200 |
commit | f8881000d7cc6b8b520e8fcba95177d2cde1ae36 (patch) | |
tree | 40e8ff107c7ab44ce53ce30c846a021a30e918b1 | |
parent | 730616b2026838c4535c1daf9b91b118fd7caecf (diff) | |
download | op-kernel-dev-f8881000d7cc6b8b520e8fcba95177d2cde1ae36.zip op-kernel-dev-f8881000d7cc6b8b520e8fcba95177d2cde1ae36.tar.gz |
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: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/ide-io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index a896a28..1678043 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -540,8 +540,6 @@ static ide_startstop_t ide_disk_special(ide_drive_t *drive) ide_tf_set_restore_cmd(drive, &args.tf); } else if (s->b.set_multmode) { 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); } else if (s->all) { int special = s->all; |