staging: wilc1000: Remove useless function
authorNathan Chancellor <natechancellor@gmail.com>
Sun, 6 May 2018 07:33:32 +0000 (00:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 02:11:23 +0000 (19:11 -0700)
commit7aa48d37ae466a5d0eaa0dba8ac88aced83bdec7
tree879a42b4bfddb0faae2e01acb30c6dfe03eb1db8
parent17521b1a1e948a58f2263d8f5d0d1366d6f11666
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>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c