staging: wilc1000: handle error condition in add_key() and remove auth_type variable
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 23 Apr 2018 16:33:19 +0000 (22:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:54:15 +0000 (15:54 +0200)
commit35237fe4d442fb0044b607f261e339dfc37112e5
tree49490c46b94ab17c37977488b9e502b4e33539e1
parent9c3427fd458095fa119b2f33bdf58c7bb301aa7c
staging: wilc1000: handle error condition in add_key() and remove auth_type variable

Added the code to return correct error code in add_key() and also removed
'auth_type' variable. Now passing diretly to function instead of using
the 'auth_type' variable.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c