mirror of
https://github.com/Ansuel/openwrt.git
synced 2025-12-16 15:01:32 +00:00
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:
parent
4f71495a47
commit
1f1cafb217
@ -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++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user