IDE cleanup (against 2.5.33) -- who takes these?

From: Pavel Machek (pavel@ucw.cz)
Date: Thu Sep 05 2002 - 17:28:30 EST


Hi!

Who takes cleanup patches against 2.5.33? Alan is it you or should it
go directly to Linus?
                                                                Pavel

--- linux-swsusp.2/drivers/ide/ide-proc.c 2002-09-05 23:30:28.000000000 +0200
+++ linux-swsusp/drivers/ide/ide-proc.c 2002-09-06 00:20:43.000000000 +0200
@@ -562,14 +562,14 @@
         (char *page, char **start, off_t off, int count, int *eof, void *data)
 {
         ide_drive_t *drive = (ide_drive_t *) data;
- ide_driver_t *driver = (ide_driver_t *) drive->driver;
+ ide_driver_t *driver = drive->driver;
         int len;
 
         if (!driver)
                 len = sprintf(page, "(none)\n");
         else
                 len = sprintf(page,"%llu\n",
- (unsigned long long) ((ide_driver_t *)drive->driver)->capacity(drive));
+ (unsigned long long) drive->driver->capacity(drive));
         PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
 }
 
@@ -601,7 +601,7 @@
         (char *page, char **start, off_t off, int count, int *eof, void *data)
 {
         ide_drive_t *drive = (ide_drive_t *) data;
- ide_driver_t *driver = (ide_driver_t *) drive->driver;
+ ide_driver_t *driver = drive->driver;
         int len;
 
         if (!driver)
@@ -718,7 +718,6 @@
         struct proc_dir_entry *ent;
         struct proc_dir_entry *parent = hwif->proc;
         char name[64];
-// ide_driver_t *driver = drive->driver;
 
         if (drive->present && !drive->proc) {
                 drive->proc = proc_mkdir(drive->name, parent);
@@ -760,7 +759,6 @@
 
         for (d = 0; d < MAX_DRIVES; d++) {
                 ide_drive_t *drive = &hwif->drives[d];
-// ide_driver_t *driver = drive->driver;
 
                 if (drive->proc)
                         destroy_proc_ide_device(hwif, drive);

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?
-
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/



This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:27 EST