diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-06-23 19:57:09 +0300 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2022-08-10 00:54:29 +0300 |
commit | 7b14a5e96128ec467ea9ced36a32f28ee7892e1f (patch) | |
tree | 822cbdd0cad7e772ba4cdc6ac33aad9b966492e2 /drivers/pci | |
parent | 9458c27a67e37a574938e9637afe393c3c2a50af (diff) | |
download | linux-7b14a5e96128ec467ea9ced36a32f28ee7892e1f.tar.xz |
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/endpoint/functions/pci-epf-vntb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c index 1466dd190417..599538cd554c 100644 --- a/drivers/pci/endpoint/functions/pci-epf-vntb.c +++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c @@ -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 : |