[PATCH] drivers/ide/legacy/hd.c: remove DEBUG From: Alexey Dobriyan hd.c with DEBUG defined for uncompilable for 36 months. Noticed by (don't laugh) indent(1). Signed-off-by: Alexey Dobriyan Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/ide/legacy/hd.c =================================================================== --- linux-kj.orig/drivers/ide/legacy/hd.c 2005-10-28 16:25:05.000000000 +0400 +++ linux-kj/drivers/ide/legacy/hd.c 2005-10-28 16:39:07.000000000 +0400 @@ -456,11 +456,6 @@ ok_to_read: req->errors = 0; i = --req->nr_sectors; --req->current_nr_sectors; -#ifdef DEBUG - printk("%s: read: sector %ld, remaining = %ld, buffer=%p\n", - req->rq_disk->disk_name, req->sector, req->nr_sectors, - req->buffer+512)); -#endif if (req->current_nr_sectors <= 0) end_request(req, 1); if (i > 0) { @@ -542,12 +537,8 @@ static void hd_times_out(unsigned long d reset = 1; name = CURRENT->rq_disk->disk_name; printk("%s: timeout\n", name); - if (++CURRENT->errors >= MAX_ERRORS) { -#ifdef DEBUG - printk("%s: too many errors\n", name); -#endif + if (++CURRENT->errors >= MAX_ERRORS) end_request(CURRENT, 0); - } local_irq_disable(); hd_request(); enable_irq(HD_IRQ); @@ -621,11 +612,6 @@ repeat: track = block / disk->sect; head = track % disk->head; cyl = track / disk->head; -#ifdef DEBUG - printk("%s: %sing: CHS=%d/%d/%d, sectors=%d, buffer=%p\n", - req->rq_disk->disk_name, (req->cmd == READ)?"read":"writ", - cyl, head, sec, nsect, req->buffer); -#endif if (req->flags & REQ_CMD) { switch (rq_data_dir(req)) { case READ: