mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH linux-next] x86: should use NULL pointer to replace plain integer
@ 2018-07-21  8:33 zhong jiang
  2018-08-02 12:36 ` [tip:x86/cleanups] x86/iommu: Use NULL instead of 0 tip-bot for Zhong Jiang
  0 siblings, 1 reply; 2+ messages in thread
From: zhong jiang @ 2018-07-21  8:33 UTC (permalink / raw)
  To: mingo, tglx; +Cc: hpa, x86, linux-kernel, gregkh

Fixes the following sparse warnings:

arch/x86/kernel/pci-iommu_table.c:63:37: warning: Using plain integer as NULL pointer

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 arch/x86/kernel/pci-iommu_table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/pci-iommu_table.c b/arch/x86/kernel/pci-iommu_table.c
index 4dfd90a..2e9006c 100644
--- a/arch/x86/kernel/pci-iommu_table.c
+++ b/arch/x86/kernel/pci-iommu_table.c
@@ -60,7 +60,7 @@ void __init check_iommu_entries(struct iommu_table_entry *start,
 			printk(KERN_ERR "CYCLIC DEPENDENCY FOUND! %pS depends on %pS and vice-versa. BREAKING IT.\n",
 			       p->detect, q->detect);
 			/* Heavy handed way..*/
-			x->depend = 0;
+			x->depend = NULL;
 		}
 	}
 
-- 
1.7.12.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-02 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-21  8:33 [PATCH linux-next] x86: should use NULL pointer to replace plain integer zhong jiang
2018-08-02 12:36 ` [tip:x86/cleanups] x86/iommu: Use NULL instead of 0 tip-bot for Zhong Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome