Skip to content

Commit

Permalink
ide-cd: remove BUG_ON() from cdrom_newpc_intr()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent 1780299 commit 98add71
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 98add71

Please sign in to comment.