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@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Sven Eckelmann 2025-11-23 12:59:54 +01:00 committed by Hauke Mehrtens
parent 4f71495a47
commit 1f1cafb217

View File

@ -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++) {