mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
of: irq: Remove WARN_ON() for kzalloc() failure
There is no need to print a backtrace if kzalloc() fails, as the memory allocation core already takes care of that. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Rob Herring <[email protected]>
This commit is contained in:
parent
c50495aa4c
commit
6f7dc9a37f
1 changed files with 1 additions and 1 deletions
|
|
@ -500,7 +500,7 @@ void __init of_irq_init(const struct of_device_id *matches)
|
|||
* pointer, interrupt-parent device_node etc.
|
||||
*/
|
||||
desc = kzalloc(sizeof(*desc), GFP_KERNEL);
|
||||
if (WARN_ON(!desc)) {
|
||||
if (!desc) {
|
||||
of_node_put(np);
|
||||
goto err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue