[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:
Michael Brown
2013-04-28 16:51:05 +01:00
parent e5cbfefdf3
commit b9663b8049
13 changed files with 20 additions and 24 deletions
+2 -1
View File
@@ -3798,7 +3798,8 @@ falcon_clear_interrupts ( struct efab_nic *efab )
}
else {
/* write to the INT_ACK register */
falcon_writel ( efab, 0, FCN_INT_ACK_KER_REG_A1 );
EFAB_ZERO_DWORD ( reg );
falcon_writel ( efab, &reg, FCN_INT_ACK_KER_REG_A1 );
mb();
falcon_readl ( efab, &reg,
WORK_AROUND_BROKEN_PCI_READS_REG_KER_A1 );