diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-05-17 19:12:18 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-05-17 19:12:18 +0200 |
commit | 5f582c8e2193e3848039de87e6a3ace7cbc7ed88 (patch) | |
tree | 57774bee00f4094fe0bcebd67ca1203d6c36257c /drivers/ide/ide-io.c | |
parent | 6029336426a2b43e4bc6f4a84be8789a047d139e (diff) | |
download | kernel_samsung_smdk4412-5f582c8e2193e3848039de87e6a3ace7cbc7ed88.tar.gz kernel_samsung_smdk4412-5f582c8e2193e3848039de87e6a3ace7cbc7ed88.tar.bz2 kernel_samsung_smdk4412-5f582c8e2193e3848039de87e6a3ace7cbc7ed88.zip |
ide: BUG() on unknown flags in ide_disk_special()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r-- | drivers/ide/ide-io.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index a0309ea661a..ef806ab88fb 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -201,12 +201,8 @@ static ide_startstop_t ide_disk_special(ide_drive_t *drive) } else if (s->b.set_multmode) { s->b.set_multmode = 0; ide_tf_set_setmult_cmd(drive, &cmd.tf); - } else if (s->all) { - int special = s->all; - s->all = 0; - printk(KERN_ERR "%s: bad special flag: 0x%02x\n", drive->name, special); - return ide_stopped; - } + } else + BUG(); cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE; cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE; |