[openwrt/openwrt] realtek: Drop out-of-memory messages
LEDE Commits
lede-commits at lists.infradead.org
Mon Nov 24 15:29:50 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/1f1cafb2178ac0d3bfd70d78ffa696b12fa7d4cd
commit 1f1cafb2178ac0d3bfd70d78ffa696b12fa7d4cd
Author: Sven Eckelmann <sven at narfation.org>
AuthorDate: Sun Nov 23 12:59:54 2025 +0100
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 <sven at narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
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 f937be226c..11aa031804 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++) {
More information about the lede-commits
mailing list