ide-cd: remove BUG_ON() from cdrom_newpc_intr()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:25 +0000 (23:09 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 1 Feb 2008 22:09:25 +0000 (23:09 +0100)
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>
drivers/ide/ide-cd.c

index 1032bec54ee6f8c945d93fac04fd5b9da365f461..448140ba484888d154a11476d27879eb84e95674 100644 (file)
@@ -1397,8 +1397,6 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
        if (len > 0)
                ide_cd_pad_transfer(drive, xferfunc, len);
 
-       BUG_ON(HWGROUP(drive)->handler != NULL);
-
        ide_set_handler(drive, cdrom_newpc_intr, rq->timeout, NULL);
        return ide_started;
 }