drivers/tty/serial/serial_core.c: clean up HIGH_BITS_OFFSET usage
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 26 Nov 2012 23:47:15 +0000 (15:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:18:04 +0000 (16:18 -0800)
commitfd985e1def964bb3a3adf5e2760af10510fd3f58
treed71c2b35b26e300cc178a18708b79c72ca71599a
parentd53c57dca2ccb540cceb0b1a228f11e1325cecde
drivers/tty/serial/serial_core.c: clean up HIGH_BITS_OFFSET usage

serial_core.c usually does

if (HIGH_BITS_OFFSET)
expr-involving-HIGH_BITS_OFFSET()

at least to avoid generating useless code on 32-bit machines, where
HIGH_BITS_OFFSET is zero.  Do that in uart_get_attr_port().

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c