All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4] Staging: rtlwifi: Remove unnecessary 'out of memory' message.
@ 2017-09-10  9:40 Shreeya Patel
  2017-09-10 10:13 ` [Outreachy kernel] " Julia Lawall
  2017-09-11 16:32 ` Greg KH
  0 siblings, 2 replies; 13+ messages in thread
From: Shreeya Patel @ 2017-09-10  9:40 UTC (permalink / raw)
  To: gregkh, outreachy-kernel; +Cc: Shreeya Patel

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>
---

Changes in v4:
  -Include v2 and v3 in the patch.

Changes in v3:
  -Make the commit message more appropriate.

changes in v2:
  -Original patch was not sent to the mailing list.
   Also, add a tab before the return statement.

 drivers/staging/rtlwifi/rc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/staging/rtlwifi/rc.c b/drivers/staging/rtlwifi/rc.c
index 65de0c7..779a5c6 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;

--
2.7.4



^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-09-11 17:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-10  9:40 [PATCH v4] Staging: rtlwifi: Remove unnecessary 'out of memory' message Shreeya Patel
2017-09-10 10:13 ` [Outreachy kernel] " Julia Lawall
2017-09-11 16:32 ` Greg KH
2017-09-11 16:18   ` Shreeya Patel
2017-09-11 16:57     ` Greg KH
2017-09-11 17:00       ` Shreeya Patel
2017-09-11 17:01     ` [Outreachy kernel] " Julia Lawall
2017-09-11 17:04       ` Shreeya Patel
2017-09-11 17:11         ` Julia Lawall
2017-09-11 17:14           ` Shreeya Patel
2017-09-11 17:19           ` Shreeya Patel
2017-09-11 17:25             ` Julia Lawall
2017-09-11 17:29               ` Shreeya Patel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.