serial: trim locking on the helpers
authorAlan Cox <alan@linux.intel.com>
Tue, 1 Jun 2010 20:52:59 +0000 (22:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:42 +0000 (13:47 -0700)
commit24fcc7c8cd0fcabcf37d455abe3501b3196fcf64
tree2003e099e16cb2204226253a95b3fbac981977c2
parentde0c8cb314cc737c47a00de33cd6246accf94192
serial: trim locking on the helpers

The port mutex protects port->tty, but these paths never need to walk from
port->tty. They do need the low level lock as the API expects that but they
already also take it.

Thus we can drop the extra mutex lock calls here.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/serial_core.c