Skip to contentSkip to conversation

staging: wfx: Modify return statement.

PATCH In review Nachammai Karuppiah 2 participants 4 messages Nov 5, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wfx: Modify return statement.

Remove return variable and return the expression. Issue found using coccinelle.

---
 drivers/staging/wfx/sta.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/staging/wfx/sta.c +1 -4
index 93f3739..be22537 100644
@@ -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)
Signature · 1 line
2.7.4
#1 lore raw
Quoted 2 lines · Nachammai Karuppiah

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

#2 lore raw
Quoted 9 lines · Greg Kroah-Hartman
Quoted 2 lines · Nachammai Karuppiah

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

Quoted 3 lines

thanks,

greg k-h

#3 lore raw
Quoted 7 lines · Nachammai Karuppiah
Quoted 5 lines · Greg Kroah-Hartman
Quoted 2 lines · Nachammai Karuppiah

Remove return variable and return the expression. Issue found using coccinelle.

Quoted 6 lines
Quoted 4 lines

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