usb: cdc-acm: Kill ACM_READY() macro completely
authorHavard Skinnemoen <hskinnemoen@google.com>
Sat, 10 Dec 2011 00:51:54 +0000 (16:51 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:33:48 +0000 (19:33 -0800)
The ACM_READY() macro doesn't seem to do anything useful, and it may
prevent tty_wait_until_sent() from working properly when called from
close.

Previously, acm_tty_chars_in_buffer() returned 0 whenever
acm->port.count was 0. This means close() could return before all the
data has actually been written.

Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found