[patch 4/9] destroy_proc_ide_device() cleanup

From: Bartlomiej Zolnierkiewicz
Date: Thu Feb 03 2005 - 22:07:39 EST



When this function is called device is already unbinded from a
driver so there are no driver /proc entries to remove.

diff -Nru a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c
--- a/drivers/ide/ide-proc.c 2005-02-04 03:31:24 +01:00
+++ b/drivers/ide/ide-proc.c 2005-02-04 03:31:24 +01:00
@@ -421,10 +421,7 @@

static void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive)
{
- ide_driver_t *driver = drive->driver;
-
if (drive->proc) {
- ide_remove_proc_entries(drive->proc, driver->proc);
ide_remove_proc_entries(drive->proc, generic_drive_entries);
remove_proc_entry(drive->name, proc_ide_root);
remove_proc_entry(drive->name, hwif->proc);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/