From: Bartlomiej Zolnierkiewicz Date: Wed, 16 Jul 2008 18:33:43 +0000 (+0200) Subject: ide: remove superfluous BUG_ON() from set_geometry_intr() X-Git-Tag: v2.6.27-rc1~1049^2~29 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=605cfe8270cb182f494575c5a608404bb19fdfc5;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index 994a5161c04..0d0bf292c41 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) if (stat & (ERR_STAT|DRQ_STAT)) return ide_error(drive, "set_geometry_intr", stat); - BUG_ON(HWGROUP(drive)->handler != NULL); ide_set_handler(drive, &set_geometry_intr, WAIT_WORSTCASE, NULL); return ide_started; }