Skip to content

Commit 98ae089

Browse files
Zhen LeiMarc Zyngier
authored andcommitted
irqchip/gic-v2m: Remove unnecessary oom message
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent da30e66 commit 98ae089

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/irqchip/irq-gic-v2m.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,8 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode,
323323
struct v2m_data *v2m;
324324

325325
v2m = kzalloc(sizeof(struct v2m_data), GFP_KERNEL);
326-
if (!v2m) {
327-
pr_err("Failed to allocate struct v2m_data.\n");
326+
if (!v2m)
328327
return -ENOMEM;
329-
}
330328

331329
INIT_LIST_HEAD(&v2m->entry);
332330
v2m->fwnode = fwnode;

0 commit comments

Comments
 (0)