Commit 090a3c7b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] MTD build fix for old gcc's

From: junkio@cox.net

Sigh.  Is there a gcc option to tell it to not accept this incompatible C99
extension?
parent 7fc4c64b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment