Staging: rtlwifi: Remove unnecessary 'out of memory' message.
PATCH v3 1/1 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.
Changes in v3:
-Make the commit message more appropriate.
--- drivers/staging/rtlwifi/rc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/rtlwifi/rc.c +0 -0
@@ -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
Quoted 7 lines · 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.
Quoted 6 lines
Problem found by checkpatch.
Signed-off-by Shreeya Patel <[email protected]>Changes in v3:
-Make the commit message more appropriate.
The changelog needs to be under the ---. In that way it will be discarded when the patch is committed. When looking at the git tree, the information about the previous versions is not relevant, because those versions aren't available in the git tree. Explain all the changes, not just the most recent one. It's a bit awkward in this case because v1 wasn't sent to the list, but put something for that, so that it will be clear why we are up to the current version number.
julia
Quoted 31 lines
--- drivers/staging/rtlwifi/rc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/staging/rtlwifi/rc.c +1
-4@@ -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
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1505033456-3365-1-git-send-email-shreeya.patel23498%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Quoted 24 lines · Julia Lawall
Quoted 7 lines · 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.
Quoted 6 lines
Problem found by checkpatch.
Signed-off-by Shreeya Patel <[email protected]>Changes in v3:
-Make the commit message more appropriate.The changelog needs to be under the ---. In that way it will be discarded when the patch is committed. When looking at the git tree, the information about the previous versions is not relevant, because those versions aren't available in the git tree. Explain all the changes, not just the most recent one. It's a bit awkward in this case because v1 wasn't sent to the list, but put something for that, so that it will be clear why we are up to the current version number.
Quoted 1 line
julia
Ok.
I will do the necessary changes and will send as v4.
Quoted 31 lines
Quoted 31 lines
--- drivers/staging/rtlwifi/rc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/staging/rtlwifi/rc.c +1
-4@@ -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
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1505033456-3365-1-git-send-email-shreeya.patel23498%40gmail.com.
For more options, visit https://groups.google.com/d/optout.