]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08993930d44bfe59701ad05baa4916f133d385ca
tree42fbf80c1cd1c4837faa22ae572cb8a1d75b5f88
parent27bd2096bb5a269b48ff05aea2d3aeb8765b61fc
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