]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: r8188eu: remove for_each_ie macro
authorIvan Safonov <insafonov@gmail.com>
Wed, 24 Aug 2016 08:21:05 +0000 (15:21 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2016 16:01:40 +0000 (18:01 +0200)
for_each_ie does not used in the driver code.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/ieee80211.h

index ddb9db459181364860b20cc6992fa1a98ca5ec2c..e45ef1422c6f0708727eaecd294533b6241877f6 100644 (file)
@@ -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;