staging: most: replace multiple if..else with table lookup
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Mon, 28 Dec 2015 08:55:37 +0000 (08:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commite7f2b70fd3a98951e4f09b7c7a084b268c924ad8
tree4470942cca21f56d9274bcd99a0fd8c8eddd0181
parent17ac98ac7339bdf867633d788e1bde32349012f2
staging: most: replace multiple if..else with table lookup

Replace multiple if..else if..statements with simple table lookup in two
functions.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c