Skip to content

Commit 7b14a5e

Browse files
ColinIanKingjonmason
authored andcommitted
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: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
1 parent 9458c27 commit 7b14a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/endpoint/functions/pci-epf-vntb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ static int epf_ntb_mw_bar_init(struct epf_ntb *ntb)
597597

598598
ntb->epf->bar[barno].barno = barno;
599599
ntb->epf->bar[barno].size = size;
600-
ntb->epf->bar[barno].addr = 0;
600+
ntb->epf->bar[barno].addr = NULL;
601601
ntb->epf->bar[barno].phys_addr = 0;
602602
ntb->epf->bar[barno].flags |= upper_32_bits(size) ?
603603
PCI_BASE_ADDRESS_MEM_TYPE_64 :

0 commit comments

Comments
 (0)