Staging: rtlwifi: Remove unnecessary 'out of memory' message.
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: Shreeya Patel <shreeya.patel23498@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d2f826d3c4
commit
596e0559d6
1 changed files with 1 additions and 3 deletions
|
@ -281,10 +281,8 @@ static void *rtl_rate_alloc_sta(void *ppriv,
|
||||||
struct rtl_rate_priv *rate_priv;
|
struct rtl_rate_priv *rate_priv;
|
||||||
|
|
||||||
rate_priv = kzalloc(sizeof(*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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue