aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtlwifi
diff options
context:
space:
mode:
authorShreeya Patel <shreeya.patel23498@gmail.com>2017-09-11 23:21:06 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-17 16:35:27 +0200
commit596e0559d61a0bf7c01113280cdf7525a35f1090 (patch)
tree6970a5694a543ed74ddb545211e39561639aa599 /drivers/staging/rtlwifi
parentstaging: rtl8723bs: Remove unnecessary spaces (diff)
downloadlinux-dev-596e0559d61a0bf7c01113280cdf7525a35f1090.tar.xz
linux-dev-596e0559d61a0bf7c01113280cdf7525a35f1090.zip
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>
Diffstat (limited to 'drivers/staging/rtlwifi')
-rw-r--r--drivers/staging/rtlwifi/rc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/rtlwifi/rc.c b/drivers/staging/rtlwifi/rc.c
index 65de0c7b5a67..779a5c6987a5 100644
--- a/drivers/staging/rtlwifi/rc.c
+++ b/drivers/staging/rtlwifi/rc.c
@@ -281,10 +281,8 @@ static void *rtl_rate_alloc_sta(void *ppriv,
struct rtl_rate_priv *rate_priv;
rate_priv = kzalloc(sizeof(*rate_priv), gfp);
- if (!rate_priv) {
- pr_err("Unable to allocate private rc structure\n");
+ if (!rate_priv)
return NULL;
- }
rtlpriv->rate_priv = rate_priv;