[PATCH] (trivial 2.5.74) compilation fix drivers/mtd/mtd_blkdevs.c

junkio@cox.net
Thu, 03 Jul 2003 01:39:31 -0700


C does not let us declar variables in the middle of a block (yet).

--- 2.5.74/drivers/mtd/mtd_blkdevs.c 2003-07-03 01:32:27.000000000 -0700
+++ 2.5.74/drivers/mtd/mtd_blkdevs.c 2003-07-03 01:32:56.000000000 -0700
@@ -211,9 +211,10 @@
case HDIO_GETGEO:
if (tr->getgeo) {
struct hd_geometry g;
+ int ret;

memset(&g, 0, sizeof(g));
- int ret = tr->getgeo(dev, &g);
+ ret = tr->getgeo(dev, &g);
if (ret)
return ret;


-
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/