brcmfmac: remove unused function.
authorHante Meuleman <meuleman@broadcom.com>
Wed, 19 Sep 2012 20:21:12 +0000 (22:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Sep 2012 19:02:05 +0000 (15:02 -0400)
clean up code.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c

index daaac4e2658d87732e81b13e4989b495e3f8410c..83e29ff78724d6423225bf9634ac4756df86309b 100644 (file)
@@ -4706,20 +4706,3 @@ s32 brcmf_cfg80211_down(struct brcmf_cfg80211_dev *cfg_dev)
        return err;
 }
 
-static __used s32 brcmf_add_ie(struct brcmf_cfg80211_priv *cfg_priv,
-                              u8 t, u8 l, u8 *v)
-{
-       struct brcmf_cfg80211_ie *ie = &cfg_priv->ie;
-       s32 err = 0;
-
-       if (ie->offset + l + 2 > WL_TLV_INFO_MAX) {
-               WL_ERR("ei crosses buffer boundary\n");
-               return -ENOSPC;
-       }
-       ie->buf[ie->offset] = t;
-       ie->buf[ie->offset + 1] = l;
-       memcpy(&ie->buf[ie->offset + 2], v, l);
-       ie->offset += l + 2;
-
-       return err;
-}