]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix microcode.c for older gcc's
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:21:21 +0000 (18:21 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:21:21 +0000 (18:21 -0700)
Fix a C99ism.

arch/i386/kernel/microcode.c

index cb82c3d398aaa72901f8fcea409c9200379de90f..4a39289b6a39fc61b0e616da9adac32dcffb991b 100644 (file)
@@ -324,8 +324,8 @@ static int find_matching_ucodes (void)
                                        /* check extended table checksum */
                                        if (ext_table_size) {
                                                int ext_table_sum = 0;
-                                               i = ext_table_size / DWSIZE;
                                                int * ext_tablep = (((void *) newmc) + MC_HEADER_SIZE + data_size);
+                                               i = ext_table_size / DWSIZE;
                                                while (i--) ext_table_sum += ext_tablep[i];
                                                if (ext_table_sum) {
                                                        printk(KERN_WARNING "microcode: aborting, bad extended signature table checksum\n");