projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9458c27
)
NTB: EPF: set pointer addr to null using NULL rather than 0
author
Colin Ian King
<colin.i.king@gmail.com>
Thu, 23 Jun 2022 16:57:09 +0000
(17:57 +0100)
committer
Jon Mason
<jdmason@kudzu.us>
Tue, 9 Aug 2022 21:54:29 +0000
(17:54 -0400)
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>
drivers/pci/endpoint/functions/pci-epf-vntb.c
patch
|
blob
|
history
diff --git
a/drivers/pci/endpoint/functions/pci-epf-vntb.c
b/drivers/pci/endpoint/functions/pci-epf-vntb.c
index 1466dd1904175481b8cceb25df46e29aba6a31c7..599538cd554c2ebd231d803717522cab440bbe10 100644
(file)
--- 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 :