提交 2ea70bb0 编写于 作者: S Shreeya Patel 提交者: Kalle Valo

rtlwifi: Remove unnecessary 'out of memory' message

This is merged by Ping-Ke Shih from commit 596e0559 ("Staging:
rtlwifi: Remove unnecessary 'out of memory' message."), and commit log
is reserved below.

Logging messages that show some type of "out of memory" error
are generally unnecessary as there is a generic message and
a stack dump done by the memory subsystem.

These messages generally increase kernel size without much
added value.

Problem found by checkpatch.
Signed-off-by: NShreeya Patel <shreeya.patel23498@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 6c726f36
...@@ -265,11 +265,9 @@ static void *rtl_rate_alloc_sta(void *ppriv, ...@@ -265,11 +265,9 @@ static void *rtl_rate_alloc_sta(void *ppriv,
struct rtl_priv *rtlpriv = ppriv; struct rtl_priv *rtlpriv = ppriv;
struct rtl_rate_priv *rate_priv; struct rtl_rate_priv *rate_priv;
rate_priv = kzalloc(sizeof(struct rtl_rate_priv), gfp); rate_priv = kzalloc(sizeof(*rate_priv), gfp);
if (!rate_priv) { if (!rate_priv)
pr_err("Unable to allocate private rc structure\n");
return NULL; return NULL;
}
rtlpriv->rate_priv = rate_priv; rtlpriv->rate_priv = rate_priv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册