staging: wfx: Remove local variable used only in return statement.
Remove unnecessary local variable that is used in return statement and return the expression directly. Issue found using coccinelle. Signed-off-by: Nachammai Karuppiah <nachukannan@gmail.com> Link: https://lore.kernel.org/r/1572945691-109992-1-git-send-email-nachukannan@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
168c7d7642
commit
78ce93f3e8
@@ -114,8 +114,6 @@ end:
|
|||||||
static int wfx_set_uapsd_param(struct wfx_vif *wvif,
|
static int wfx_set_uapsd_param(struct wfx_vif *wvif,
|
||||||
const struct wfx_edca_params *arg)
|
const struct wfx_edca_params *arg)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
|
|
||||||
/* Here's the mapping AC [queue, bit]
|
/* Here's the mapping AC [queue, bit]
|
||||||
* VO [0,3], VI [1, 2], BE [2, 1], BK [3, 0]
|
* 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.max_auto_trigger_interval = 0;
|
||||||
wvif->uapsd_info.auto_trigger_step = 0;
|
wvif->uapsd_info.auto_trigger_step = 0;
|
||||||
|
|
||||||
ret = hif_set_uapsd_info(wvif, &wvif->uapsd_info);
|
return hif_set_uapsd_info(wvif, &wvif->uapsd_info);
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int wfx_fwd_probe_req(struct wfx_vif *wvif, bool enable)
|
int wfx_fwd_probe_req(struct wfx_vif *wvif, bool enable)
|
||||||
|
Reference in New Issue
Block a user