diff options
author | Jiri Slaby <jslaby@suse.cz> | 2011-04-20 12:43:13 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-26 01:19:10 +0400 |
commit | 6d742f655efe767dc77a099b57297fa417afc473 (patch) | |
tree | ddfad773d1a748fa860572364b7cd361d8429041 /drivers/hid | |
parent | c29bd8d89c9423aed182dbfdb6527b576a2f3552 (diff) | |
download | linux-6d742f655efe767dc77a099b57297fa417afc473.tar.xz |
Char: nozomi, remove port.count checks
Before 33dd474a, these were some kind of protection against race with
HUP. They were protected with port->tty_sem at the same time.
By that commit, the counting was switched to tty_port's one, but the
locking remained the old one. So the count was not protected by
any lock anymore.
The driver should not test whether it raced with HUP or not anyways.
With the new refcounted tty model, it just should proceed as nothing
happened because all needed info is still there. In respect to this,
let's drop the useless and unprotected tests (tty_port->count is
protected by tty_port->lock).
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Tested-by: Gerald Pfeifer <gerald@pfeifer.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions