|
Line 0
Link Here
|
|
|
1 |
--- flashrom.c.orig 2015-01-03 11:51:27.374478495 +0100 |
| 2 |
+++ flashrom.c 2015-01-03 11:53:02.382473813 +0100 |
| 3 |
@@ -1738,7 +1738,7 @@ |
| 4 |
* For 'flashchips' we check the first element to be non-null. In the |
| 5 |
* other cases there exist use cases where the first element can be |
| 6 |
* null. */ |
| 7 |
- if (flashchips == NULL || flashchips[0].vendor == NULL) { |
| 8 |
+ if (!flashchips || flashchips[0].vendor == NULL) { |
| 9 |
msg_gerr("Flashchips table miscompilation!\n"); |
| 10 |
ret = 1; |
| 11 |
} |
| 12 |
@@ -1747,19 +1747,19 @@ |
| 13 |
ret = 1; |
| 14 |
|
| 15 |
#if CONFIG_INTERNAL == 1 |
| 16 |
- if (chipset_enables == NULL) { |
| 17 |
+ if (!chipset_enables) { |
| 18 |
msg_gerr("Chipset enables table does not exist!\n"); |
| 19 |
ret = 1; |
| 20 |
} |
| 21 |
- if (board_matches == NULL) { |
| 22 |
+ if (!board_matches) { |
| 23 |
msg_gerr("Board enables table does not exist!\n"); |
| 24 |
ret = 1; |
| 25 |
} |
| 26 |
- if (boards_known == NULL) { |
| 27 |
+ if (!boards_known) { |
| 28 |
msg_gerr("Known boards table does not exist!\n"); |
| 29 |
ret = 1; |
| 30 |
} |
| 31 |
- if (laptops_known == NULL) { |
| 32 |
+ if (!laptops_known) { |
| 33 |
msg_gerr("Known laptops table does not exist!\n"); |
| 34 |
ret = 1; |
| 35 |
} |