Cosmetic fixes
Corresponding to flashrom svn r130 and coreboot v2 svn r2748.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
diff --git a/lbtable.c b/lbtable.c
index 004e61c..57cc766 100644
--- a/lbtable.c
+++ b/lbtable.c
@@ -44,6 +44,7 @@
} value;
unsigned long sum;
unsigned long i;
+
/* In the most straight forward way possible,
* compute an ip style checksum.
*/
@@ -64,6 +65,7 @@
}
value.byte[0] = sum & 0xff;
value.byte[1] = (sum >> 8) & 0xff;
+
return (~value.word) & 0xFFFF;
}
@@ -78,10 +80,12 @@
{
struct lb_record *rec;
int count;
+
count = 0;
for_each_lbrec(head, rec) {
count++;
}
+
return count;
}
@@ -89,6 +93,7 @@
unsigned long end)
{
unsigned long addr;
+
/* For now be stupid.... */
for (addr = start; addr < end; addr += 16) {
struct lb_header *head =
@@ -123,6 +128,7 @@
return head;
};
+
return 0;
}
@@ -131,6 +137,7 @@
struct lb_mainboard *rec;
int max_size;
char vendor[256], part[256];
+
rec = (struct lb_mainboard *)ptr;
max_size = rec->size - sizeof(*rec);
printf("vendor id: %.*s part id: %.*s\n",
@@ -206,5 +213,6 @@
printf("No LinuxBIOS table found.\n");
return -1;
}
+
return 0;
}