]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging: rtl8188eu: use eth_broadcast_addr() in place of memset
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Wed, 20 Jan 2016 12:52:58 +0000 (12:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:00:46 +0000 (19:00 -0800)
Replace the memset of array to broadcast address 0xFF by using the
eth_broadcast_addr() API

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c

index a076ede50b2245003e4d41d9f3e054fe7d031d8e..aec20bb28ca0b5751f3070d765c1f9975732d1c0 100644 (file)
@@ -1907,7 +1907,7 @@ static int rtw_wx_set_enc_ext(struct net_device *dev,
        memset(param, 0, param_len);
 
        param->cmd = IEEE_CMD_SET_ENCRYPTION;
-       memset(param->sta_addr, 0xff, ETH_ALEN);
+       eth_broadcast_addr(param->sta_addr);
 
        switch (pext->alg) {
        case IW_ENCODE_ALG_NONE: