projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da30e66
)
irqchip/gic-v2m: Remove unnecessary oom message
author
Zhen Lei
<thunder.leizhen@huawei.com>
Wed, 9 Jun 2021 14:05:34 +0000
(22:05 +0800)
committer
Marc Zyngier
<maz@kernel.org>
Fri, 11 Jun 2021 13:19:32 +0000
(14:19 +0100)
Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Remove it can help us save a bit of memory.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20210609140534.14478-1-thunder.leizhen@huawei.com
drivers/irqchip/irq-gic-v2m.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-gic-v2m.c
b/drivers/irqchip/irq-gic-v2m.c
index
4116b48
..
be9ea6f
100644
(file)
--- a/
drivers/irqchip/irq-gic-v2m.c
+++ b/
drivers/irqchip/irq-gic-v2m.c
@@
-323,10
+323,8
@@
static int __init gicv2m_init_one(struct fwnode_handle *fwnode,
struct v2m_data *v2m;
v2m = kzalloc(sizeof(struct v2m_data), GFP_KERNEL);
- if (!v2m) {
- pr_err("Failed to allocate struct v2m_data.\n");
+ if (!v2m)
return -ENOMEM;
- }
INIT_LIST_HEAD(&v2m->entry);
v2m->fwnode = fwnode;