Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: sc16is7xx: drop -ENOMEM error message

Core already prints detailed error messages on ENOMEM errors and drivers
should avoid repeating it.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20251027142957.1032073-7-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hugo Villeneuve and committed by
Greg Kroah-Hartman
e0925b4a 0f4f88bf

+1 -3
+1 -3
drivers/tty/serial/sc16is7xx.c
··· 1527 1527 1528 1528 /* Alloc port structure */ 1529 1529 s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL); 1530 - if (!s) { 1531 - dev_err(dev, "Error allocating port structure\n"); 1530 + if (!s) 1532 1531 return -ENOMEM; 1533 - } 1534 1532 1535 1533 /* Always ask for fixed clock rate from a property. */ 1536 1534 device_property_read_u32(dev, "clock-frequency", &uartclk);