All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] (trivial 2.5.74) compilation fix drivers/mtd/mtd_blkdevs.c
@ 2003-07-03  8:39 junkio
  2003-07-03  9:57 ` Juan Quintela
  0 siblings, 1 reply; 4+ messages in thread
From: junkio @ 2003-07-03  8:39 UTC (permalink / raw)
  To: linux-kernel

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;

                                


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-03 10:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-03  8:39 [PATCH] (trivial 2.5.74) compilation fix drivers/mtd/mtd_blkdevs.c junkio
2003-07-03  9:57 ` Juan Quintela
2003-07-03 10:01   ` Russell King
2003-07-03 10:42   ` junkio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.