]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] MTD build fix for old gcc's
authorAndrew Morton <akpm@osdl.org>
Sat, 5 Jul 2003 02:38:13 +0000 (19:38 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 5 Jul 2003 02:38:13 +0000 (19:38 -0700)
From: junkio@cox.net

Sigh.  Is there a gcc option to tell it to not accept this incompatible C99
extension?

drivers/mtd/mtd_blkdevs.c

index 3b0c9c469ea30e1594b2604d187b0452aa091b3f..d15606605f81764dc762da3dd082be76be625ce9 100644 (file)
@@ -211,9 +211,10 @@ static int blktrans_ioctl(struct inode *inode, struct file *file,
        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;