staging: dgnc: replace dgnc_offset_table with bit shift.
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 28 Mar 2016 04:54:15 +0000 (13:54 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Mar 2016 04:06:17 +0000 (21:06 -0700)
commitd8bf4bee49728e31b1d225630c39714a6c42648c
tree42fbf80c1cd1c4837faa22ae572cb8a1d75b5f88
parente078cb2a64fd588557ef2dec573622699a05d642
staging: dgnc: replace dgnc_offset_table with bit shift.

the dgnc_offset_table has a same value with (1 << port).
So I tried to replace dgnc_offset_table array with 1 << port.
And also there are redundant assignments(tmp and current_port)
inside while loop for checking uart port, and remove them.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c