Skip to content

Commit

Permalink
NTB: EPF: set pointer addr to null using NULL rather than 0
Browse files Browse the repository at this point in the history
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: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
  • Loading branch information
Colin Ian King authored and Jon Mason committed Aug 9, 2022
1 parent 9458c27 commit 7b14a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/endpoint/functions/pci-epf-vntb.c
Original file line number Diff line number Diff line change
@@ -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].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].flags |= upper_32_bits(size) ?
PCI_BASE_ADDRESS_MEM_TYPE_64 :

0 comments on commit 7b14a5e

Please sign in to comment.