From: Greg KH <gregkh@linuxfoundation.org>
To: Maya Nakamura <m.maya.nakamura@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [PATCH] staging: rtlwifi: Remove an extra pair of braces
Date: Mon, 22 Oct 2018 09:27:32 +0100 [thread overview]
Message-ID: <20181022082732.GD7068@kroah.com> (raw)
In-Reply-To: <20181021234946.GA2183@k-vBox>
On Sun, Oct 21, 2018 at 04:49:49PM -0700, Maya Nakamura wrote:
> Remove an extra pair of braces. Issue found while reviewing one of
> Coccinelle's semantic patch results for returnvar.cocci.
>
> Signed-off-by: Maya Nakamura <m.maya.nakamura@gmail.com>
> ---
> drivers/staging/rtlwifi/phydm/phydm_hwconfig.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c b/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c
> index 4bf86e5a451f..90a41c64c0c2 100644
> --- a/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c
> +++ b/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c
> @@ -484,9 +484,7 @@ static u8 odm_query_rx_pwr_percentage(s8 ant_power)
>
> s32 odm_signal_scale_mapping(struct phy_dm_struct *dm, s32 curr_sig)
> {
> - {
> - return curr_sig;
> - }
> + return curr_sig;
> }
Why is this function needed at all? Can't it just be removed and only
use the curr_sig parameter where it is called?
thanks,
greg k-h
next prev parent reply other threads:[~2018-10-22 8:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-21 23:49 [PATCH] staging: rtlwifi: Remove an extra pair of braces Maya Nakamura
2018-10-22 8:27 ` Greg KH [this message]
2018-10-23 6:57 ` Maya Nakamura
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=20181022082732.GD7068@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=m.maya.nakamura@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.