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

Martin Schwidefsky (schwidefsky@de.ibm.com)
Mon, 18 Nov 2002 20:22:36 +0100


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/