mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[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:
@@ -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, ®, FCN_INT_ACK_KER_REG_A1 );
|
||||
mb();
|
||||
falcon_readl ( efab, ®,
|
||||
WORK_AROUND_BROKEN_PCI_READS_REG_KER_A1 );
|
||||
|
||||
Reference in New Issue
Block a user