* [PATCH 01/41] staging: r8188eu: remove rtw_ies_remove_ie function
@ 2016-08-24 8:19 Ivan Safonov
2016-09-01 16:02 ` Greg Kroah-Hartman
0 siblings, 1 reply; 3+ messages in thread
From: Ivan Safonov @ 2016-08-24 8:19 UTC (permalink / raw)
To: Greg Kroah-Hartman, Arnd Bergmann, Binoy Jayan, devel,
linux-kernel
Cc: Ivan Safonov
Driver does not use this function.
Signed-off-by: Ivan Safonov <insafonov@gmail.com>
---
drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 47 --------------------------
drivers/staging/rtl8188eu/include/ieee80211.h | 2 --
2 files changed, 49 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
index 0b0d78f..b8ba90a 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ieee80211.c
@@ -280,53 +280,6 @@ u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, u
return target_ie;
}
-/**
- * rtw_ies_remove_ie - Find matching IEs and remove
- * @ies: Address of IEs to search
- * @ies_len: Pointer of length of ies, will update to new length
- * @offset: The offset to start scarch
- * @eid: Element ID to match
- * @oui: OUI to match
- * @oui_len: OUI length
- *
- * Returns: _SUCCESS: ies is updated, _FAIL: not updated
- */
-int rtw_ies_remove_ie(u8 *ies, uint *ies_len, uint offset, u8 eid, u8 *oui, u8 oui_len)
-{
- int ret = _FAIL;
- u8 *target_ie;
- u32 target_ielen;
- u8 *start;
- uint search_len;
-
- if (!ies || !ies_len || *ies_len <= offset)
- goto exit;
-
- start = ies + offset;
- search_len = *ies_len - offset;
-
- while (1) {
- target_ie = rtw_get_ie_ex(start, search_len, eid, oui, oui_len, NULL, &target_ielen);
- if (target_ie && target_ielen) {
- u8 buf[MAX_IE_SZ] = {0};
- u8 *remain_ies = target_ie + target_ielen;
- uint remain_len = search_len - (remain_ies - start);
-
- memcpy(buf, remain_ies, remain_len);
- memcpy(target_ie, buf, remain_len);
- *ies_len = *ies_len - target_ielen;
- ret = _SUCCESS;
-
- start = target_ie;
- search_len = remain_len;
- } else {
- break;
- }
- }
-exit:
- return ret;
-}
-
void rtw_set_supported_rate(u8 *SupportedRates, uint mode)
{
diff --git a/drivers/staging/rtl8188eu/include/ieee80211.h b/drivers/staging/rtl8188eu/include/ieee80211.h
index d8284c8..a62077b 100644
--- a/drivers/staging/rtl8188eu/include/ieee80211.h
+++ b/drivers/staging/rtl8188eu/include/ieee80211.h
@@ -1108,8 +1108,6 @@ u8 *rtw_set_ie_mesh_ch_switch_parm(u8 *buf, u32 *buf_len, u8 ttl,
u8 *rtw_get_ie(u8 *pbuf, int index, int *len, int limit);
u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui,
u8 oui_len, u8 *ie, uint *ielen);
-int rtw_ies_remove_ie(u8 *ies, uint *ies_len, uint offset,
- u8 eid, u8 *oui, u8 oui_len);
void rtw_set_supported_rate(u8 *SupportedRates, uint mode);
--
2.7.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 01/41] staging: r8188eu: remove rtw_ies_remove_ie function
2016-08-24 8:19 [PATCH 01/41] staging: r8188eu: remove rtw_ies_remove_ie function Ivan Safonov
@ 2016-09-01 16:02 ` Greg Kroah-Hartman
2016-09-02 13:38 ` Ivan Safonov
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2016-09-01 16:02 UTC (permalink / raw)
To: Ivan Safonov; +Cc: Arnd Bergmann, Binoy Jayan, devel, linux-kernel
On Wed, Aug 24, 2016 at 03:19:21PM +0700, Ivan Safonov wrote:
> Driver does not use this function.
>
> Signed-off-by: Ivan Safonov <insafonov@gmail.com>
> ---
> drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 47 --------------------------
> drivers/staging/rtl8188eu/include/ieee80211.h | 2 --
> 2 files changed, 49 deletions(-)
I like patch series that deletes lots of code, nice job!
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 01/41] staging: r8188eu: remove rtw_ies_remove_ie function
2016-09-01 16:02 ` Greg Kroah-Hartman
@ 2016-09-02 13:38 ` Ivan Safonov
0 siblings, 0 replies; 3+ messages in thread
From: Ivan Safonov @ 2016-09-02 13:38 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Arnd Bergmann, Binoy Jayan, devel, linux-kernel
On 09/01/2016 11:02 PM, Greg Kroah-Hartman wrote:
> On Wed, Aug 24, 2016 at 03:19:21PM +0700, Ivan Safonov wrote:
>> Driver does not use this function.
>>
>> Signed-off-by: Ivan Safonov <insafonov@gmail.com>
>> ---
>> drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 47 --------------------------
>> drivers/staging/rtl8188eu/include/ieee80211.h | 2 --
>> 2 files changed, 49 deletions(-)
> I like patch series that deletes lots of code, nice job!
>
> greg k-h
Thanks.
This is the best way to fix a checkpatch warnings!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-02 13:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24 8:19 [PATCH 01/41] staging: r8188eu: remove rtw_ies_remove_ie function Ivan Safonov
2016-09-01 16:02 ` Greg Kroah-Hartman
2016-09-02 13:38 ` Ivan Safonov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox