staging: wilc1000: remove 'ret' variable in handle_key()
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 11 May 2018 08:13:03 +0000 (13:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:04:47 +0000 (14:04 +0200)
commit43103ed0c2d3a64cd2ef94994b34a2cb5a46cd02
tree335a65ce13ed34f88e011d461d52bcd068d626c7
parentbcafa651d318857b7b65b9c5327216e64434cff4
staging: wilc1000: remove 'ret' variable in handle_key()

Remove the use of unnecessary 'ret' variable and use existing 'result'
variable to hold the status. Also changed type of 'result' from s32 to
int to confirm with the function return type.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c