[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -399,7 +399,7 @@ vxsetlink(void)
|
||||
|
||||
i = vx_connector; /* default in EEPROM */
|
||||
reason = "default";
|
||||
warning = 0;
|
||||
warning = NULL;
|
||||
|
||||
if ((vx_connectors & conn_tab[vx_connector].bit) == 0) {
|
||||
warning = "strange connector type in EEPROM.";
|
||||
@@ -407,7 +407,7 @@ vxsetlink(void)
|
||||
i = CONNECTOR_UTP;
|
||||
}
|
||||
|
||||
if (warning != 0) {
|
||||
if (warning) {
|
||||
printf("warning: %s\n", warning);
|
||||
}
|
||||
printf("selected %s. (%s)\n", conn_tab[i].name, reason);
|
||||
|
||||
Reference in New Issue
Block a user