* [PATCH v2] staging: rtl8723au: Fixes unnecessary return warning
@ 2016-01-30 5:57 Bhaktipriya Shridhar
2016-01-30 11:55 ` Julian Calaby
2016-01-31 14:34 ` Jes Sorensen
0 siblings, 2 replies; 3+ messages in thread
From: Bhaktipriya Shridhar @ 2016-01-30 5:57 UTC (permalink / raw)
To: Larry Finger, Jes Sorensen, Greg Kroah-Hartman, Joe Perches,
Bhaktipriya Shridhar, Alexander Kuleshov, Haneen Mohammed,
Andreas Ruprecht
Cc: linux-wireless, devel, linux-kernel
This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
WARNING: void function return statements are not generally useful
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
Changes in v2:
- Removed the unnecessary blank lines.
drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
index d28f29a..7cd0052 100644
--- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
@@ -2656,8 +2656,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)
pattrib->last_txcmdsz = pattrib->pktlen;
dump_mgntframe23a(padapter, pmgntframe);
-
- return;
}
static int _issue_probereq(struct rtw_adapter *padapter,
@@ -2957,8 +2955,6 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta,
rtw_wep_encrypt23a(padapter, pmgntframe);
DBG_8723A("%s\n", __func__);
dump_mgntframe23a(padapter, pmgntframe);
-
- return;
}
#ifdef CONFIG_8723AU_AP_MODE
@@ -3338,8 +3334,6 @@ exit:
}
} else
kfree(pmlmepriv->assoc_req);
-
- return;
}
/* when wait_ack is true, this function should be called at process context */
@@ -4102,8 +4096,6 @@ static void rtw_site_survey(struct rtw_adapter *padapter)
pmlmeext->chan_scan_time = SURVEY_TO;
pmlmeext->sitesurvey_res.state = SCAN_DISABLE;
}
-
- return;
}
/* collect bss info from Beacon and Probe request/response frames. */
@@ -4759,8 +4751,6 @@ void report_survey_event23a(struct rtw_adapter *padapter,
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
pmlmeext->sitesurvey_res.bss_cnt++;
-
- return;
}
void report_surveydone_event23a(struct rtw_adapter *padapter)
@@ -4802,8 +4792,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter)
DBG_8723A("survey done event(%x)\n", psurveydone_evt->bss_cnt);
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
-
- return;
}
void report_join_res23a(struct rtw_adapter *padapter, int res)
@@ -4850,8 +4838,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)
rtw_joinbss_event_prehandle23a(padapter, (u8 *)&pjoinbss_evt->network);
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
-
- return;
}
void report_del_sta_event23a(struct rtw_adapter *padapter,
@@ -4906,8 +4892,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter,
DBG_8723A("report_del_sta_event23a: delete STA, mac_id =%d\n", mac_id);
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
-
- return;
}
void report_add_sta_event23a(struct rtw_adapter *padapter,
@@ -4951,8 +4935,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter,
DBG_8723A("report_add_sta_event23a: add STA\n");
rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
-
- return;
}
/****************************************************************************
@@ -5394,8 +5376,6 @@ static void link_timer_hdl(unsigned long data)
issue_assocreq(padapter);
set_link_timer(pmlmeext, REASSOC_TO);
}
-
- return;
}
static void addba_timer_hdl(unsigned long data)
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] staging: rtl8723au: Fixes unnecessary return warning
2016-01-30 5:57 [PATCH v2] staging: rtl8723au: Fixes unnecessary return warning Bhaktipriya Shridhar
@ 2016-01-30 11:55 ` Julian Calaby
2016-01-31 14:34 ` Jes Sorensen
1 sibling, 0 replies; 3+ messages in thread
From: Julian Calaby @ 2016-01-30 11:55 UTC (permalink / raw)
To: Bhaktipriya Shridhar
Cc: Larry Finger, Jes Sorensen, Greg Kroah-Hartman, Joe Perches,
Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
linux-wireless, devel, linux-kernel
On Sat, Jan 30, 2016 at 4:57 PM, Bhaktipriya Shridhar
<bhaktipriya96@gmail.com> wrote:
> This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
> WARNING: void function return statements are not generally useful
>
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Looks sane to me.
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
> ---
> Changes in v2:
> - Removed the unnecessary blank lines.
> drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 20 --------------------
> 1 file changed, 20 deletions(-)
>
> diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> index d28f29a..7cd0052 100644
> --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c
> @@ -2656,8 +2656,6 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da)
> pattrib->last_txcmdsz = pattrib->pktlen;
>
> dump_mgntframe23a(padapter, pmgntframe);
> -
> - return;
> }
>
> static int _issue_probereq(struct rtw_adapter *padapter,
> @@ -2957,8 +2955,6 @@ static void issue_auth(struct rtw_adapter *padapter, struct sta_info *psta,
> rtw_wep_encrypt23a(padapter, pmgntframe);
> DBG_8723A("%s\n", __func__);
> dump_mgntframe23a(padapter, pmgntframe);
> -
> - return;
> }
>
> #ifdef CONFIG_8723AU_AP_MODE
> @@ -3338,8 +3334,6 @@ exit:
> }
> } else
> kfree(pmlmepriv->assoc_req);
> -
> - return;
> }
>
> /* when wait_ack is true, this function should be called at process context */
> @@ -4102,8 +4096,6 @@ static void rtw_site_survey(struct rtw_adapter *padapter)
> pmlmeext->chan_scan_time = SURVEY_TO;
> pmlmeext->sitesurvey_res.state = SCAN_DISABLE;
> }
> -
> - return;
> }
>
> /* collect bss info from Beacon and Probe request/response frames. */
> @@ -4759,8 +4751,6 @@ void report_survey_event23a(struct rtw_adapter *padapter,
> rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
>
> pmlmeext->sitesurvey_res.bss_cnt++;
> -
> - return;
> }
>
> void report_surveydone_event23a(struct rtw_adapter *padapter)
> @@ -4802,8 +4792,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter)
> DBG_8723A("survey done event(%x)\n", psurveydone_evt->bss_cnt);
>
> rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
> -
> - return;
> }
>
> void report_join_res23a(struct rtw_adapter *padapter, int res)
> @@ -4850,8 +4838,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)
> rtw_joinbss_event_prehandle23a(padapter, (u8 *)&pjoinbss_evt->network);
>
> rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
> -
> - return;
> }
>
> void report_del_sta_event23a(struct rtw_adapter *padapter,
> @@ -4906,8 +4892,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter,
> DBG_8723A("report_del_sta_event23a: delete STA, mac_id =%d\n", mac_id);
>
> rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
> -
> - return;
> }
>
> void report_add_sta_event23a(struct rtw_adapter *padapter,
> @@ -4951,8 +4935,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter,
> DBG_8723A("report_add_sta_event23a: add STA\n");
>
> rtw_enqueue_cmd23a(pcmdpriv, pcmd_obj);
> -
> - return;
> }
>
> /****************************************************************************
> @@ -5394,8 +5376,6 @@ static void link_timer_hdl(unsigned long data)
> issue_assocreq(padapter);
> set_link_timer(pmlmeext, REASSOC_TO);
> }
> -
> - return;
> }
>
> static void addba_timer_hdl(unsigned long data)
> --
> 2.1.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Julian Calaby
Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] staging: rtl8723au: Fixes unnecessary return warning
2016-01-30 5:57 [PATCH v2] staging: rtl8723au: Fixes unnecessary return warning Bhaktipriya Shridhar
2016-01-30 11:55 ` Julian Calaby
@ 2016-01-31 14:34 ` Jes Sorensen
1 sibling, 0 replies; 3+ messages in thread
From: Jes Sorensen @ 2016-01-31 14:34 UTC (permalink / raw)
To: Bhaktipriya Shridhar
Cc: Larry Finger, Greg Kroah-Hartman, Joe Perches,
Alexander Kuleshov, Haneen Mohammed, Andreas Ruprecht,
linux-wireless, devel, linux-kernel
Bhaktipriya Shridhar <bhaktipriya96@gmail.com> writes:
> This patch fixes checkpatch.pl warning in rtw_mlme_ext.c file.
> WARNING: void function return statements are not generally useful
>
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
> ---
> Changes in v2:
> - Removed the unnecessary blank lines.
> drivers/staging/rtl8723au/core/rtw_mlme_ext.c | 20 --------------------
> 1 file changed, 20 deletions(-)
Harmless, albeit pointless, so fine with me.
Jes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-31 14:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-30 5:57 [PATCH v2] staging: rtl8723au: Fixes unnecessary return warning Bhaktipriya Shridhar
2016-01-30 11:55 ` Julian Calaby
2016-01-31 14:34 ` Jes Sorensen
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.