diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:25 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:25 -0500 |
commit | 98add71ee0af6dbf1496ac8007bcf253c4e23078 (patch) | |
tree | 5b83d5a56dcfbd4aebb902e4f62fed5b992ad3d3 /drivers/ide/ide-cd.c | |
parent | 17802998d2c8007d06565c39101d218f579c4454 (diff) |
ide-cd: remove BUG_ON() from cdrom_newpc_intr()
There is no need for it anylonger and ide_set_handler() complains
if ->handler is not NULL anyway.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 1032bec54ee6..448140ba4848 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -1397,8 +1397,6 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive) | |||
1397 | if (len > 0) | 1397 | if (len > 0) |
1398 | ide_cd_pad_transfer(drive, xferfunc, len); | 1398 | ide_cd_pad_transfer(drive, xferfunc, len); |
1399 | 1399 | ||
1400 | BUG_ON(HWGROUP(drive)->handler != NULL); | ||
1401 | |||
1402 | ide_set_handler(drive, cdrom_newpc_intr, rq->timeout, NULL); | 1400 | ide_set_handler(drive, cdrom_newpc_intr, rq->timeout, NULL); |
1403 | return ide_started; | 1401 | return ide_started; |
1404 | } | 1402 | } |