[PATCH] 2.4.21-rc1 pointless IDE noise reduction

Erik Andersen (andersen@codepoet.org)
Thu, 24 Apr 2003 03:34:43 -0600


The ide driver does not list whether drives support things like
write cache, SMART, SECURITY ERASE UNIT. But for some silly
reason it tells us at boot whether each drive is capable of
supporting the Host Protected Area feature set. If people want
to know the capabilites of their drive, they can run 'hdparm'
and find out.

This patch removes this pointless noise. Please apply,

--- linux/drivers/ide/ide-disk.c.orig 2003-04-24 03:23:53.000000000 -0600
+++ linux/drivers/ide/ide-disk.c 2003-04-24 03:24:54.000000000 -0600
@@ -1133,10 +1133,7 @@
*/
static inline int idedisk_supports_host_protected_area(ide_drive_t *drive)
{
- int flag = (drive->id->cfs_enable_1 & 0x0400) ? 1 : 0;
- if (flag)
- printk("%s: host protected area => %d\n", drive->name, flag);
- return flag;
+ return((drive->id->cfs_enable_1 & 0x0400) ? 1 : 0);
}

/*

-Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/