lkml.org 
[lkml]   [2007]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 45/63] ide-cd: remove BUG_ON() from cdrom_newpc_intr()
Date

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 | 2 --
1 file changed, 2 deletions(-)

Index: b/drivers/ide/ide-cd.c
===================================================================
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1368,8 +1368,6 @@ static ide_startstop_t cdrom_newpc_intr(
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;


\
 
 \ /
  Last update: 2007-12-20 02:57    [W:0.479 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site