staging: wilc1000: refactor add_key() to avoid duplicated code
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 23 Apr 2018 16:33:18 +0000 (22:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:54:14 +0000 (15:54 +0200)
commit9c3427fd458095fa119b2f33bdf58c7bb301aa7c
treed9584653ddf4eacb902eb991617f5734cad11ed7
parentd68331a2c7cf891e623b75f0166ef63cb0b2c3a3
staging: wilc1000: refactor add_key() to avoid duplicated code

Cleanup fixes by removing the duplicated code in actor add_key().

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