diff options
author | Zhong Jiang <zhongjiang@huawei.com> | 2018-07-21 11:33:24 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-08-02 15:33:19 +0300 |
commit | 0b2c1aec49ddb2260894df6c69ae7b34142ff936 (patch) | |
tree | e9ab867e3a702c69de2723579857a3b7a3af8c68 /arch/x86 | |
parent | 2397134ce2d73dcf1d4846579f594c9f3880b2ec (diff) | |
download | linux-0b2c1aec49ddb2260894df6c69ae7b34142ff936.tar.xz |
x86/iommu: Use NULL instead of 0
Fixes the following sparse warning:
arch/x86/kernel/pci-iommu_table.c:63:37: warning: Using plain integer as NULL pointer
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: <hpa@zytor.com>
Cc: <gregkh@linuxfoundation.org>
Link: https://lkml.kernel.org/r/1532162004-24670-1-git-send-email-zhongjiang@huawei.com
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/pci-iommu_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-iommu_table.c b/arch/x86/kernel/pci-iommu_table.c index 4dfd90a75e63..2e9006c1e240 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; } } |