2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 03:04:01 +08:00

staging: wilc1000: remove static variable 'del_beacon' and null check

Using local variable instead of static varible 'del_beacon'. Also removed
the unnecessary 'if' check in handle_del_beacon().

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ajay Singh 2018-05-02 12:43:39 +05:30 committed by Greg Kroah-Hartman
parent 30324405ba
commit 228d0422bb

View File

@ -246,7 +246,6 @@ static s8 rssi;
static u8 set_ip[2][4];
static u8 get_ip[2][4];
static u32 inactive_time;
static u8 del_beacon;
static u32 clients_count;
#define REAL_JOIN_REQ 0
@ -2019,15 +2018,13 @@ static void handle_del_beacon(struct wilc_vif *vif)
s32 result = 0;
struct wid wid;
u8 *cur_byte;
u8 del_beacon = 0;
wid.id = (u16)WID_DEL_BEACON;
wid.type = WID_CHAR;
wid.size = sizeof(char);
wid.val = &del_beacon;
if (!wid.val)
return;
cur_byte = wid.val;
result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1,