realtek: Drop out-of-memory messages
authorSven Eckelmann <[email protected]>
Sun, 23 Nov 2025 11:59:54 +0000 (12:59 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 24 Nov 2025 23:28:49 +0000 (00:28 +0100)
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

index f937be226c12c4e6d54d3783bcc6ba820a830c3e..11aa031804d3af054357a9cbc664bfcafa27d68d 100644 (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++) {