Commit 9bb28936 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wicl1000: removed the unsed variables in wilc_parse_network_info()

Cleanup patch to remove the unused variables in
wilc_parse_network_info(). The value is assinged to these local
variables but assinged value is not used in that function.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad8cab74
...@@ -272,10 +272,6 @@ s32 wilc_parse_network_info(u8 *msg_buffer, ...@@ -272,10 +272,6 @@ s32 wilc_parse_network_info(u8 *msg_buffer,
{ {
struct network_info *network_info = NULL; struct network_info *network_info = NULL;
u8 msg_type = 0; u8 msg_type = 0;
u8 msg_id = 0;
u16 msg_len = 0;
u16 wid_id = (u16)WID_NIL;
u16 wid_len = 0; u16 wid_len = 0;
u8 *wid_val = NULL; u8 *wid_val = NULL;
...@@ -284,9 +280,6 @@ s32 wilc_parse_network_info(u8 *msg_buffer, ...@@ -284,9 +280,6 @@ s32 wilc_parse_network_info(u8 *msg_buffer,
if ('N' != msg_type) if ('N' != msg_type)
return -EFAULT; return -EFAULT;
msg_id = msg_buffer[1];
msg_len = MAKE_WORD16(msg_buffer[2], msg_buffer[3]);
wid_id = MAKE_WORD16(msg_buffer[4], msg_buffer[5]);
wid_len = MAKE_WORD16(msg_buffer[6], msg_buffer[7]); wid_len = MAKE_WORD16(msg_buffer[6], msg_buffer[7]);
wid_val = &msg_buffer[8]; wid_val = &msg_buffer[8];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment