aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-io.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-02 10:12:49 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-01-02 10:12:49 -0500
commitb2cfb05a701809abee591265a198afa029d68bff (patch)
tree9a53bd5fc64fe98b2436abf237afc381cfdee1d8 /drivers/ide/ide-io.c
parent2fb211502e2c0513e12d677ed4d7891f3c5e1413 (diff)
ide: remove "paranoia" checks for hwgroup->busy
Remove "paranoia" checks for hwgroup->busy from ide_timer_expiry() and ide_intr(). This is a preparation for future changes. Cc: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Elias Oltmanns <eo@nebensachen.de> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r--drivers/ide/ide-io.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 40327d1e6a9f..c60512196f61 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -1011,10 +1011,7 @@ void ide_timer_expiry (unsigned long data)
1011 } else { 1011 } else {
1012 ide_hwif_t *hwif; 1012 ide_hwif_t *hwif;
1013 ide_startstop_t startstop = ide_stopped; 1013 ide_startstop_t startstop = ide_stopped;
1014 if (!hwgroup->busy) { 1014
1015 hwgroup->busy = 1; /* paranoia */
1016 printk(KERN_ERR "%s: ide_timer_expiry: hwgroup->busy was 0 ??\n", drive->name);
1017 }
1018 if ((expiry = hwgroup->expiry) != NULL) { 1015 if ((expiry = hwgroup->expiry) != NULL) {
1019 /* continue */ 1016 /* continue */
1020 if ((wait = expiry(drive)) > 0) { 1017 if ((wait = expiry(drive)) > 0) {
@@ -1227,10 +1224,6 @@ irqreturn_t ide_intr (int irq, void *dev_id)
1227 */ 1224 */
1228 goto out; 1225 goto out;
1229 1226
1230 if (!hwgroup->busy) {
1231 hwgroup->busy = 1; /* paranoia */
1232 printk(KERN_ERR "%s: ide_intr: hwgroup->busy was 0 ??\n", drive->name);
1233 }
1234 hwgroup->handler = NULL; 1227 hwgroup->handler = NULL;
1235 hwgroup->req_gen++; 1228 hwgroup->req_gen++;
1236 del_timer(&hwgroup->timer); 1229 del_timer(&hwgroup->timer);