diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-13 17:13:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-13 17:13:53 -0400 |
commit | 36f49ca8ca6d786936f48b874d30fded5b2b7bd9 (patch) | |
tree | 56a15bd57d0d17329b62cbac00998b69868ca7bb | |
parent | 00b24d545549b5e4a49ff00f017391c3b62a2f05 (diff) | |
parent | 0b2c1aec49ddb2260894df6c69ae7b34142ff936 (diff) |
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanups from Thomas Gleixner:
"Trival cleanups"
* 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/iommu: Use NULL instead of 0
x86/platform/pcspeaker: Use PTR_ERR_OR_ZERO() to fix ptr_ret.cocci warning
-rw-r--r-- | arch/x86/kernel/pci-iommu_table.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/pcspeaker.c | 2 |
2 files changed, 2 insertions, 2 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, | |||
60 | printk(KERN_ERR "CYCLIC DEPENDENCY FOUND! %pS depends on %pS and vice-versa. BREAKING IT.\n", | 60 | printk(KERN_ERR "CYCLIC DEPENDENCY FOUND! %pS depends on %pS and vice-versa. BREAKING IT.\n", |
61 | p->detect, q->detect); | 61 | p->detect, q->detect); |
62 | /* Heavy handed way..*/ | 62 | /* Heavy handed way..*/ |
63 | x->depend = 0; | 63 | x->depend = NULL; |
64 | } | 64 | } |
65 | } | 65 | } |
66 | 66 | ||
diff --git a/arch/x86/kernel/pcspeaker.c b/arch/x86/kernel/pcspeaker.c index da5190a1ea16..4a710ffffd9a 100644 --- a/arch/x86/kernel/pcspeaker.c +++ b/arch/x86/kernel/pcspeaker.c | |||
@@ -9,6 +9,6 @@ static __init int add_pcspkr(void) | |||
9 | 9 | ||
10 | pd = platform_device_register_simple("pcspkr", -1, NULL, 0); | 10 | pd = platform_device_register_simple("pcspkr", -1, NULL, 0); |
11 | 11 | ||
12 | return IS_ERR(pd) ? PTR_ERR(pd) : 0; | 12 | return PTR_ERR_OR_ZERO(pd); |
13 | } | 13 | } |
14 | device_initcall(add_pcspkr); | 14 | device_initcall(add_pcspkr); |