]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: refactor LOCAL_EEPROM_SUM case in hostif_mib_get_confirm
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:46 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:41 +0000 (18:58 -0700)
commitcb9dae515120a1807282f3dc6f1db8a856d374cd
tree3e22e5270ccecc17058fc81f1487096ac931ec15
parent34243ab7d36ca493f06a94a7ce0218664b8fcb9a
staging: ks7010: refactor LOCAL_EEPROM_SUM case in hostif_mib_get_confirm

This commit simplify conditional paths in LOCAL_EEPROM_SUM case
inside hostif_mib_get_confirm function. It change logic to handle
invalid values first and assign good ones at the end if it is the
case.

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