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

From: junkio@cox.net
Date: Thu Jul 03 2003 - 03:39:31 EST


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/



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:18 EST