]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbd3a2b865c6984cd593c30fd50e39c2d9d9799a
tree4470942cca21f56d9274bcd99a0fd8c8eddd0181
parentea53413b217a7ddbb84f37b5c073beac0e23200c
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