Commit 7b14a5e9 authored by Colin Ian King's avatar Colin Ian King Committed by Jon Mason

NTB: EPF: set pointer addr to null using NULL rather than 0

The pointer addr is being set to null using 0. Use NULL instead.

Cleans up sparse warning:
warning: Using plain integer as NULL pointer
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 9458c27a
...@@ -597,7 +597,7 @@ static int epf_ntb_mw_bar_init(struct epf_ntb *ntb) ...@@ -597,7 +597,7 @@ static int epf_ntb_mw_bar_init(struct epf_ntb *ntb)
ntb->epf->bar[barno].barno = barno; ntb->epf->bar[barno].barno = barno;
ntb->epf->bar[barno].size = size; ntb->epf->bar[barno].size = size;
ntb->epf->bar[barno].addr = 0; ntb->epf->bar[barno].addr = NULL;
ntb->epf->bar[barno].phys_addr = 0; ntb->epf->bar[barno].phys_addr = 0;
ntb->epf->bar[barno].flags |= upper_32_bits(size) ? ntb->epf->bar[barno].flags |= upper_32_bits(size) ?
PCI_BASE_ADDRESS_MEM_TYPE_64 : PCI_BASE_ADDRESS_MEM_TYPE_64 :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment