aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
diff options
context:
space:
mode:
authorSevinj Aghayeva <sevinj.aghayeva@gmail.com>2022-04-04 23:16:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-05 16:06:57 +0200
commit3c22d17793e4384ae1cebbc0b0253d3556552dff (patch)
tree661ed075497a7f3af569c31607ea97995dda78ab /drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
parentstaging: rtl8723bs: remove redundant braces in if statements (diff)
downloadlinux-dev-3c22d17793e4384ae1cebbc0b0253d3556552dff.tar.xz
linux-dev-3c22d17793e4384ae1cebbc0b0253d3556552dff.zip
staging: rtl8723bs: remove return from a function returning void
Adhere to Linux kernel coding style. Reported by checkpatch: WARNING: void function return statements are not generally useful Signed-off-by: Sevinj Aghayeva <sevinj.aghayeva@gmail.com> Link: https://lore.kernel.org/r/d1aa09f34cd192e284048999ba8e20d26a224483.1649128267.git.sevinj.aghayeva@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/core/rtw_mlme_ext.c')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_mlme_ext.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
index 73891222f0d0..ee02db976cd5 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
@@ -5114,22 +5114,17 @@ void survey_timer_hdl(struct timer_list *t)
ph2c = rtw_zmalloc(sizeof(struct cmd_obj));
if (!ph2c)
- goto exit_survey_timer_hdl;
+ return;
psurveyPara = rtw_zmalloc(sizeof(struct sitesurvey_parm));
if (!psurveyPara) {
kfree(ph2c);
- goto exit_survey_timer_hdl;
+ return;
}
init_h2fwcmd_w_parm_no_rsp(ph2c, psurveyPara, GEN_CMD_CODE(_SiteSurvey));
rtw_enqueue_cmd(pcmdpriv, ph2c);
}
-
-
-exit_survey_timer_hdl:
-
- return;
}
void link_timer_hdl(struct timer_list *t)