mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-16 11:38:11 +00:00
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
This commit is contained in:
commit
36f49ca8ca
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
printk(KERN_ERR "CYCLIC DEPENDENCY FOUND! %pS depends on %pS and vice-versa. BREAKING IT.\n",
|
||||||
p->detect, q->detect);
|
p->detect, q->detect);
|
||||||
/* Heavy handed way..*/
|
/* Heavy handed way..*/
|
||||||
x->depend = 0;
|
x->depend = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@ static __init int add_pcspkr(void)
|
||||||
|
|
||||||
pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
|
pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
|
||||||
|
|
||||||
return IS_ERR(pd) ? PTR_ERR(pd) : 0;
|
return PTR_ERR_OR_ZERO(pd);
|
||||||
}
|
}
|
||||||
device_initcall(add_pcspkr);
|
device_initcall(add_pcspkr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue