From: Sven Eckelmann Date: Sun, 23 Nov 2025 11:59:54 +0000 (+0100) Subject: realtek: Drop out-of-memory messages X-Git-Tag: v25.12.0-rc1~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f1cafb2178ac0d3bfd70d78ffa696b12fa7d4cd;p=thirdparty%2Fopenwrt.git realtek: Drop out-of-memory messages The kernel already complains loud enough to inform about an out-of-memory situation. It is recommended not to add extra logging for *alloc errors. Signed-off-by: Sven Eckelmann Link: https://github.com/openwrt/openwrt/pull/20906 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c index f937be226c1..11aa031804d 100644 --- a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c +++ b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c @@ -352,10 +352,9 @@ static void rtl839x_l2_notification_handler(struct rtl838x_eth_priv *priv) int i; w = kzalloc(sizeof(*w), GFP_ATOMIC); - if (!w) { - pr_err("Out of memory: %s", __func__); + if (!w) return; - } + INIT_WORK(&w->work, rtl838x_fdb_sync); for (i = 0; i < NOTIFY_EVENTS; i++) {