From: Greg KH <gregkh@linuxfoundation.org>
To: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 1/4] staging: rtl8712: rtl871x_sta_mgt: Remove wrapper function
Date: Wed, 4 Nov 2015 12:28:13 -0800 [thread overview]
Message-ID: <20151104202813.GA31382@kroah.com> (raw)
In-Reply-To: <50a3d739a35e00dc6c2b737b9fdc382aaa094ec8.1446302505.git.amitoj1606@gmail.com>
On Sat, Oct 31, 2015 at 08:16:27PM +0530, Amitoj Kaur Chawla wrote:
> Remove wrapper function that can be replaced by a single line of code.
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> ---
> drivers/staging/rtl8712/rtl871x_sta_mgt.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/rtl871x_sta_mgt.c b/drivers/staging/rtl8712/rtl871x_sta_mgt.c
> index 6ae8cdc..a379b84 100644
> --- a/drivers/staging/rtl8712/rtl871x_sta_mgt.c
> +++ b/drivers/staging/rtl8712/rtl871x_sta_mgt.c
> @@ -89,16 +89,11 @@ static void mfree_all_stainfo(struct sta_priv *pstapriv)
> spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL);
> }
>
> -
> -static void mfree_sta_priv_lock(struct sta_priv *pstapriv)
> -{
> - mfree_all_stainfo(pstapriv); /* be done before free sta_hash_lock */
> -}
> -
> u32 _r8712_free_sta_priv(struct sta_priv *pstapriv)
> {
> if (pstapriv) {
> - mfree_sta_priv_lock(pstapriv);
> + /* be done before free sta_hash_lock */
> + mfree_all_stainfo(pstapriv);
You add trailing whitespace :(
Always check your patches with checkpatch before sending them out.
thanks,
greg k-h
next prev parent reply other threads:[~2015-11-04 20:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-31 14:45 [PATCH 0/4] staging: Drop unnecessary code Amitoj Kaur Chawla
2015-10-31 14:46 ` [PATCH 1/4] staging: rtl8712: rtl871x_sta_mgt: Remove wrapper function Amitoj Kaur Chawla
2015-11-04 20:28 ` Greg KH [this message]
2015-10-31 14:49 ` [PATCH 2/4] staging: rtl8712: rtl871x_mlme: " Amitoj Kaur Chawla
2015-10-31 14:52 ` [PATCH 3/4] staging: rtl8192e: Remove unnecessary variable Amitoj Kaur Chawla
2015-10-31 14:55 ` [PATCH 4/4] staging: rtl8192u: Remove unnecessary function Amitoj Kaur Chawla
2015-10-31 17:17 ` [Outreachy kernel] " Julia Lawall
2015-10-31 17:40 ` Amitoj Kaur Chawla
2015-10-31 17:49 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151104202813.GA31382@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=amitoj1606@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.