From: Ivan Safonov Date: Wed, 24 Aug 2016 08:21:05 +0000 (+0700) Subject: staging: r8188eu: remove for_each_ie macro X-Git-Tag: v4.9-rc1~119^2~819 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be98624d1446dd2ef58d72f1e5c0417346710a27;p=karo-tx-linux.git staging: r8188eu: remove for_each_ie macro for_each_ie does not used in the driver code. Signed-off-by: Ivan Safonov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/include/ieee80211.h b/drivers/staging/rtl8188eu/include/ieee80211.h index ddb9db459181..e45ef1422c6f 100644 --- a/drivers/staging/rtl8188eu/include/ieee80211.h +++ b/drivers/staging/rtl8188eu/include/ieee80211.h @@ -1121,16 +1121,6 @@ u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_content, uint *len_content); -/** - * for_each_ie - iterate over continuous IEs - * @ie: - * @buf: - * @buf_len: - */ -#define for_each_ie(ie, buf, buf_len) \ - for (ie = (void *)buf; (((u8 *)ie) - ((u8 *)buf) + 1) < buf_len; \ - ie = (void *)(((u8 *)ie) + *(((u8 *)ie)+1) + 2)) - uint rtw_get_rateset_len(u8 *rateset); struct registry_priv;