staging: ks7010: clean SME_MIC_FAILURE_REQUEST case in hostif_sme_execute
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:19 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:38 +0000 (18:58 -0700)
commitf398c5f4de79b851c1362d3ee8f4fd5e2713fab0
treede90bdbbd4ecd06cc87b14179d4d82ea9b3ccfbe
parente765861cadc2dfc3da7227d0942aadaa68c33fd9
staging: ks7010: clean SME_MIC_FAILURE_REQUEST case in hostif_sme_execute

This commit cleans code for the event SME_MIC_FAILURE_REQUEST
changing if logic to handle invalid value first and using a
local variable.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c