mtd/drivers/mtd mtd_blkdevs.c,1.16,1.17
David Woodhouse
dwmw2 at infradead.org
Wed Jul 9 05:00:51 EDT 2003
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv2165
Modified Files:
mtd_blkdevs.c
Log Message:
Fix C99ism
Index: mtd_blkdevs.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtd_blkdevs.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mtd_blkdevs.c 23 Jun 2003 13:34:43 -0000 1.16
+++ mtd_blkdevs.c 9 Jul 2003 09:00:49 -0000 1.17
@@ -211,9 +211,11 @@
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;
More information about the linux-mtd-cvs
mailing list