summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtlwifi/rc.c
diff options
context:
space:
mode:
authorShreeya Patel <shreeya.patel23498@gmail.com>2017-12-29 11:31:06 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-01-08 20:07:43 +0300
commit2ea70bb005010c614fd60d6ca931058e4997bdd7 (patch)
tree045b4a9f063282a55dfe1aca29282b85e22f0c92 /drivers/net/wireless/realtek/rtlwifi/rc.c
parent6c726f36cbf5b8b16ec07458d7c2ff1cc2d83d1f (diff)
downloadlinux-2ea70bb005010c614fd60d6ca931058e4997bdd7.tar.xz
rtlwifi: Remove unnecessary 'out of memory' message
This is merged by Ping-Ke Shih from commit 596e0559d61a ("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: Shreeya Patel <shreeya.patel23498@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/rc.c')
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/rc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rc.c b/drivers/net/wireless/realtek/rtlwifi/rc.c
index 02811eda57cd..9638bf4a96f7 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rc.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rc.c
@@ -265,11 +265,9 @@ static void *rtl_rate_alloc_sta(void *ppriv,
struct rtl_priv *rtlpriv = ppriv;
struct rtl_rate_priv *rate_priv;
- rate_priv = kzalloc(sizeof(struct rtl_rate_priv), gfp);
- if (!rate_priv) {
- pr_err("Unable to allocate private rc structure\n");
+ rate_priv = kzalloc(sizeof(*rate_priv), gfp);
+ if (!rate_priv)
return NULL;
- }
rtlpriv->rate_priv = rate_priv;