diff options
author | 2018-05-06 00:33:32 -0700 | |
---|---|---|
committer | 2018-05-06 19:11:23 -0700 | |
commit | 7aa48d37ae466a5d0eaa0dba8ac88aced83bdec7 (patch) | |
tree | 879a42b4bfddb0faae2e01acb30c6dfe03eb1db8 /drivers/staging/wilc1000/host_interface.c | |
parent | staging: wilc1000: Remove unused variables (diff) | |
download | linux-dev-7aa48d37ae466a5d0eaa0dba8ac88aced83bdec7.tar.xz linux-dev-7aa48d37ae466a5d0eaa0dba8ac88aced83bdec7.zip |
staging: wilc1000: Remove useless function
GCC warns that 'wid' is unused in wilc_remove_key and it's correct; the
variable is only local. Get rid of the function (since it just returns
zero) and shuffle the remaining code into one if statement.
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/host_interface.c')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 3fd4c8e62da6..b5f3829e9903 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -2606,18 +2606,6 @@ static void timer_connect_cb(struct timer_list *t) wilc_enqueue_cmd(&msg); } -s32 wilc_remove_key(struct host_if_drv *hif_drv, const u8 *sta_addr) -{ - struct wid wid; - - wid.id = (u16)WID_REMOVE_KEY; - wid.type = WID_STR; - wid.val = (s8 *)sta_addr; - wid.size = 6; - - return 0; -} - int wilc_remove_wep_key(struct wilc_vif *vif, u8 index) { int result = 0; |