diff options
author | Leo Kim <leo.kim@atmel.com> | 2016-02-22 13:41:14 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-22 11:48:19 -0800 |
commit | 21ac321f71b3f0cc7af34a6e1192fd92120bd1fa (patch) | |
tree | aeb93ac2e3331c9d27393c6c06cd79442916191a /drivers/staging/wilc1000/wilc_wlan_cfg.c | |
parent | 7242eee14bdde4f010e4eb862ab2d09ec239aa51 (diff) | |
download | op-kernel-dev-21ac321f71b3f0cc7af34a6e1192fd92120bd1fa.zip op-kernel-dev-21ac321f71b3f0cc7af34a6e1192fd92120bd1fa.tar.gz |
staging: wilc1000: removes unnecessary variable of wilc_mac_cfg_t structure
This patch removes unnecessary variable of wilc_mac_cfg_t structure.
The variable is debug print function pointer.
Removes all what used this variable.
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan_cfg.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan_cfg.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c index 56455f4..deff886 100644 --- a/drivers/staging/wilc1000/wilc_wlan_cfg.c +++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c @@ -20,8 +20,6 @@ ********************************************/ struct wilc_mac_cfg { - wilc_debug_func dPrint; - int mac_status; u8 mac_address[7]; u8 ip_address[5]; @@ -389,8 +387,6 @@ int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size) ret = wilc_wlan_cfg_set_str(frame, offset, id, buf, size); } else if (type == 4) { /* binary command */ ret = wilc_wlan_cfg_set_bin(frame, offset, id, buf, size); - } else { - g_mac.dPrint(N_ERR, "illegal id\n"); } return ret; @@ -481,8 +477,6 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size) } i++; } while (1); - } else { - g_mac.dPrint(N_ERR, "[CFG]: illegal type (%08x)\n", wid); } return ret; @@ -540,6 +534,5 @@ int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size, int wilc_wlan_cfg_init(wilc_debug_func func) { memset((void *)&g_mac, 0, sizeof(struct wilc_mac_cfg)); - g_mac.dPrint = func; return 1; } |