]> git.hungrycats.org Git - linux/commitdiff
[PATCH] i2o_config build fix
authorAndrew Morton <akpm@osdl.org>
Sat, 15 May 2004 03:27:04 +0000 (20:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 15 May 2004 03:27:04 +0000 (20:27 -0700)
Stomp a C99ism.

drivers/message/i2o/i2o_config.c

index 5e944a1f6851c0d9412bb5ed9e37315db7bf0d82..f417bac422c61166009fbb9bc3b1585962465f60 100644 (file)
@@ -891,12 +891,14 @@ static int ioctl_passthru(unsigned long arg)
 
        memset(sg_list,0, sizeof(sg_list[0])*SG_TABLESIZE);
        if(sg_offset) {
+               struct sg_simple_element *sg;
+
                if(sg_offset * 4 >= size) {
                        rcode = -EFAULT;
                        goto cleanup;
                }
                // TODO 64bit fix
-               struct sg_simple_element *sg = (struct sg_simple_element*) (msg+sg_offset);
+               sg = (struct sg_simple_element*) (msg+sg_offset);
                sg_count = (size - sg_offset*4) / sizeof(struct sg_simple_element);
                if (sg_count > SG_TABLESIZE) {
                        printk(KERN_DEBUG"%s:IOCTL SG List too large (%u)\n", c->name,sg_count);