]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18d497d9b17ed35c91f16bab3119d7090c03f3ca
tree879a42b4bfddb0faae2e01acb30c6dfe03eb1db8
parent265bb10238b6f7182faf2b671d2c32bad8f76aad
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