diff options
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index 86379fdd8b0e..aa6e603bfcbf 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -1459,7 +1459,7 @@ static int netxen_nic_pci_mem_read_direct(struct netxen_adapter *adapter, | |||
1459 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE * 2); | 1459 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE * 2); |
1460 | else | 1460 | else |
1461 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE); | 1461 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE); |
1462 | if (mem_ptr == 0UL) { | 1462 | if (mem_ptr == NULL) { |
1463 | *(uint8_t *)data = 0; | 1463 | *(uint8_t *)data = 0; |
1464 | return -1; | 1464 | return -1; |
1465 | } | 1465 | } |
@@ -1533,7 +1533,7 @@ netxen_nic_pci_mem_write_direct(struct netxen_adapter *adapter, u64 off, | |||
1533 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE*2); | 1533 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE*2); |
1534 | else | 1534 | else |
1535 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE); | 1535 | mem_ptr = ioremap(mem_base + mem_page, PAGE_SIZE); |
1536 | if (mem_ptr == 0UL) | 1536 | if (mem_ptr == NULL) |
1537 | return -1; | 1537 | return -1; |
1538 | addr = mem_ptr; | 1538 | addr = mem_ptr; |
1539 | addr += start & (PAGE_SIZE - 1); | 1539 | addr += start & (PAGE_SIZE - 1); |