* [PATCH] staging: wfx: Modify return statement.
@ 2019-11-05 6:52 Nachammai Karuppiah
2019-11-05 7:20 ` Greg Kroah-Hartman
0 siblings, 1 reply; 4+ messages in thread
From: Nachammai Karuppiah @ 2019-11-05 6:52 UTC (permalink / raw)
To: Jérôme Pouiller, Greg Kroah-Hartman
Cc: outreachy-kernel, Nachammai Karuppiah
Remove return variable and return the expression. Issue found using
coccinelle.
Signed-off-by: Nachammai Karuppiah <nachukannan@gmail.com>
---
drivers/staging/wfx/sta.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c
index 93f3739..be22537 100644
--- a/drivers/staging/wfx/sta.c
+++ b/drivers/staging/wfx/sta.c
@@ -114,8 +114,6 @@ void wfx_cqm_bssloss_sm(struct wfx_vif *wvif, int init, int good, int bad)
static int wfx_set_uapsd_param(struct wfx_vif *wvif,
const struct wfx_edca_params *arg)
{
- int ret;
-
/* Here's the mapping AC [queue, bit]
* VO [0,3], VI [1, 2], BE [2, 1], BK [3, 0]
*/
@@ -148,8 +146,7 @@ static int wfx_set_uapsd_param(struct wfx_vif *wvif,
wvif->uapsd_info.max_auto_trigger_interval = 0;
wvif->uapsd_info.auto_trigger_step = 0;
- ret = hif_set_uapsd_info(wvif, &wvif->uapsd_info);
- return ret;
+ return hif_set_uapsd_info(wvif, &wvif->uapsd_info);
}
int wfx_fwd_probe_req(struct wfx_vif *wvif, bool enable)
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] staging: wfx: Modify return statement.
2019-11-05 6:52 [PATCH] staging: wfx: Modify return statement Nachammai Karuppiah
@ 2019-11-05 7:20 ` Greg Kroah-Hartman
2019-11-05 7:23 ` Nachammai Karuppiah
0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2019-11-05 7:20 UTC (permalink / raw)
To: Nachammai Karuppiah; +Cc: Jérôme Pouiller, outreachy-kernel
On Mon, Nov 04, 2019 at 10:52:57PM -0800, Nachammai Karuppiah wrote:
> Remove return variable and return the expression. Issue found using
> coccinelle.
This says _what_ the patch does, but not _why_ you want to do this.
Also the subject is very odd...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: wfx: Modify return statement.
2019-11-05 7:20 ` Greg Kroah-Hartman
@ 2019-11-05 7:23 ` Nachammai Karuppiah
2019-11-05 7:35 ` Greg Kroah-Hartman
0 siblings, 1 reply; 4+ messages in thread
From: Nachammai Karuppiah @ 2019-11-05 7:23 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Jérôme Pouiller, outreachy-kernel
On Tue, Nov 5, 2019 at 2:20 AM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> On Mon, Nov 04, 2019 at 10:52:57PM -0800, Nachammai Karuppiah wrote:
> > Remove return variable and return the expression. Issue found using
> > coccinelle.
>
> This says _what_ the patch does, but not _why_ you want to do this.
>
> Also the subject is very odd...
>
Sure. Will resend the email for this patch. Should I just add resend
in subject line or make it V2?
Thanks for the feedback.
- Nachammai
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: wfx: Modify return statement.
2019-11-05 7:23 ` Nachammai Karuppiah
@ 2019-11-05 7:35 ` Greg Kroah-Hartman
0 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2019-11-05 7:35 UTC (permalink / raw)
To: Nachammai Karuppiah; +Cc: Jérôme Pouiller, outreachy-kernel
On Tue, Nov 05, 2019 at 02:23:39AM -0500, Nachammai Karuppiah wrote:
> On Tue, Nov 5, 2019 at 2:20 AM Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> >
> > On Mon, Nov 04, 2019 at 10:52:57PM -0800, Nachammai Karuppiah wrote:
> > > Remove return variable and return the expression. Issue found using
> > > coccinelle.
> >
> > This says _what_ the patch does, but not _why_ you want to do this.
> >
> > Also the subject is very odd...
> >
> Sure. Will resend the email for this patch. Should I just add resend
> in subject line or make it V2?
It has to be v2 as you are going to change something, right?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-11-05 7:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-05 6:52 [PATCH] staging: wfx: Modify return statement Nachammai Karuppiah
2019-11-05 7:20 ` Greg Kroah-Hartman
2019-11-05 7:23 ` Nachammai Karuppiah
2019-11-05 7:35 ` Greg Kroah-Hartman
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.