* [PATCH v5 14/15] net: wireless: ath: Remove unneeded variable ret returning 0
@ 2015-10-22 18:57 Punit Vara
2015-10-23 14:34 ` Bjorn Andersson
0 siblings, 1 reply; 2+ messages in thread
From: Punit Vara @ 2015-10-22 18:57 UTC (permalink / raw)
To: kvalo-sgV2jX0FEOL9JmXXK+q4OQ
Cc: wcn36xx-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-wireless-u79uwXL29TY76Z2rM5mHXA,
netdev-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8,
jirislaby-Re5JQEeQqe8AvxtiuMwx3w, Punit Vara
Remove empty line suggested by Sergei
This patch is to the ath5k/eeprom.c that fixes up warning caught by
coccicheck:
Unneeded variable: "ret". Return "0" on line 980
Remove unneeded variable ret created to return zero.
Signed-off-by: Punit Vara <punitvara-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/net/wireless/ath/wcn36xx/main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
index 900e72a..94bcc08 100644
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -935,8 +935,6 @@ static const struct ieee80211_ops wcn36xx_ops = {
static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
{
- int ret = 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v5 14/15] net: wireless: ath: Remove unneeded variable ret returning 0
2015-10-22 18:57 [PATCH v5 14/15] net: wireless: ath: Remove unneeded variable ret returning 0 Punit Vara
@ 2015-10-23 14:34 ` Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2015-10-23 14:34 UTC (permalink / raw)
To: Punit Vara
Cc: Kalle Valo, wcn36xx, linux-wireless, netdev,
linux-kernel@vger.kernel.org, sergei.shtylyov, jirislaby
On Thu, Oct 22, 2015 at 11:57 AM, Punit Vara <punitvara@gmail.com> wrote:
Hi Punit,
> Remove empty line suggested by Sergei
>
A commit message is here to, in the future, help us all understand
what and why this change was made, so you should not include comments
about what you changed since a previous version of this patch.
> This patch is to the ath5k/eeprom.c that fixes up warning caught by
> coccicheck:
>
You don't need to indicate what files are changed in the commit
message, as that information is already available in the body of the
commit. And the comment stats the wrong file.
> Unneeded variable: "ret". Return "0" on line 980
>
> Remove unneeded variable ret created to return zero.
>
Both of these are only reiterating what the subject already states -
in two different ways. So you can easily remove them without loosing
any information. In fact, the subject is all you need to describe the
change.
Regards,
Bjorn
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-23 14:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 18:57 [PATCH v5 14/15] net: wireless: ath: Remove unneeded variable ret returning 0 Punit Vara
2015-10-23 14:34 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).