[PATCH] 2.5.48 s390 (13/16): xpram driver.

From: Martin Schwidefsky (schwidefsky@de.ibm.com)
Date: Mon Nov 18 2002 - 14:22:36 EST


Remove unused variable and add missing return in xpram_setup_blkdev.

diff -urN linux-2.5.48/drivers/s390/block/xpram.c linux-2.5.48-s390/drivers/s390/block/xpram.c
--- linux-2.5.48/drivers/s390/block/xpram.c Mon Nov 18 05:29:51 2002
+++ linux-2.5.48-s390/drivers/s390/block/xpram.c Mon Nov 18 20:12:02 2002
@@ -325,7 +325,6 @@
 {
         struct hd_geometry *geo;
         unsigned long size;
- int idx = minor(inode->i_rdev);
          if (cmd != HDIO_GETGEO)
                 return -EINVAL;
         /*
@@ -474,6 +473,7 @@
 out:
         while (i--)
                 put_disk(xpram_disks[i]);
+ return rc;
 }
 
 /*

-
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 Nov 23 2002 - 22:00:24 EST