Skip to content

Commit 944a1a1

Browse files
Zhen LeiMarc Zyngier
authored andcommitted
irqchip/gic-v3-its: 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 98ae089 commit 944a1a1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4895,10 +4895,8 @@ static int its_init_vpe_domain(void)
48954895
entries = roundup_pow_of_two(nr_cpu_ids);
48964896
vpe_proxy.vpes = kcalloc(entries, sizeof(*vpe_proxy.vpes),
48974897
GFP_KERNEL);
4898-
if (!vpe_proxy.vpes) {
4899-
pr_err("ITS: Can't allocate GICv4 proxy device array\n");
4898+
if (!vpe_proxy.vpes)
49004899
return -ENOMEM;
4901-
}
49024900

49034901
/* Use the last possible DevID */
49044902
devid = GENMASK(device_ids(its) - 1, 0);
@@ -5314,10 +5312,8 @@ static void __init acpi_table_parse_srat_its(void)
53145312

53155313
its_srat_maps = kmalloc_array(count, sizeof(struct its_srat_map),
53165314
GFP_KERNEL);
5317-
if (!its_srat_maps) {
5318-
pr_warn("SRAT: Failed to allocate memory for its_srat_maps!\n");
5315+
if (!its_srat_maps)
53195316
return;
5320-
}
53215317

53225318
acpi_table_parse_entries(ACPI_SIG_SRAT,
53235319
sizeof(struct acpi_table_srat),

0 commit comments

Comments
 (0)