aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-taskfile.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:43 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:43 -0400
commit605cfe8270cb182f494575c5a608404bb19fdfc5 (patch)
treef2c9c7e8f18146d3427b51d193b80e0f93f55ffa /drivers/ide/ide-taskfile.c
parent07fe69d5d0b6e476cecaf75e81c0c6093571087b (diff)
ide: remove superfluous BUG_ON() from set_geometry_intr()
ide_set_handler() bugs on ->handler == NULL so no need to do it in set_geometry_intr(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r--drivers/ide/ide-taskfile.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c
index 994a5161c040..0d0bf292c418 100644
--- a/drivers/ide/ide-taskfile.c
+++ b/drivers/ide/ide-taskfile.c
@@ -163,7 +163,6 @@ static ide_startstop_t set_geometry_intr(ide_drive_t *drive)
163 if (stat & (ERR_STAT|DRQ_STAT)) 163 if (stat & (ERR_STAT|DRQ_STAT))
164 return ide_error(drive, "set_geometry_intr", stat); 164 return ide_error(drive, "set_geometry_intr", stat);
165 165
166 BUG_ON(HWGROUP(drive)->handler != NULL);
167 ide_set_handler(drive, &set_geometry_intr, WAIT_WORSTCASE, NULL); 166 ide_set_handler(drive, &set_geometry_intr, WAIT_WORSTCASE, NULL);
168 return ide_started; 167 return ide_started;
169} 168}