Commit 5731d0da authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix microcode.c for older gcc's

Fix a C99ism.
parent e4b0c50a
......@@ -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");
......
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