Instead of using the intermediate variable to hold the value, now directly
using the allocated variable.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 {
        s32 result = 0;
        struct wid wid;
-       u8 *cur_byte;
        u8 del_beacon = 0;
 
        wid.id = (u16)WID_DEL_BEACON;
        wid.size = sizeof(char);
        wid.val = &del_beacon;
 
-       cur_byte = wid.val;
-
        result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1,
                                      wilc_get_vif_idx(vif));
        if (result)
 {
        s32 result = 0;
        struct wid wid;
-       u8 *cur_byte;
 
        wid.id = (u16)WID_REMOVE_STA;
        wid.type = WID_BIN;
        if (!wid.val)
                goto error;
 
-       cur_byte = wid.val;
-
-       ether_addr_copy(cur_byte, param->mac_addr);
+       ether_addr_copy(wid.val, param->mac_addr);
 
        result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1,
                                      wilc_get_vif_idx(vif));