staging: most: hdm-usb: replace if-else branches with lookup table
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 9 Sep 2016 13:25:38 +0000 (15:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 07:47:15 +0000 (09:47 +0200)
commita747b42c8cd70bffe96862479aa1358553a0ab8f
treedd03d029a951e4359b5484c5d96b09f55371ac13
parent1296bd62b0dcbdc8fd66908eb2d72dc4c3dba219
staging: most: hdm-usb: replace if-else branches with lookup table

This patch removes a series of if-else-if conditions with a lookup table.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c