]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3fa3a47300be5506cac6f23689c02c865cba314
tree335a65ce13ed34f88e011d461d52bcd068d626c7
parentf7934263887a7689994d647aa5c44a5536af8093
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