tty.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | tty.c (b03efcfb2180289718991bb984044ce6c5b7d1b0) |
---|---|
1/* 2 RFCOMM implementation for Linux Bluetooth stack (BlueZ). 3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> 4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License version 2 as 8 published by the Free Software Foundation; --- 767 unchanged lines hidden (view full) --- 776 777static int rfcomm_tty_chars_in_buffer(struct tty_struct *tty) 778{ 779 struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; 780 struct rfcomm_dlc *dlc = dev->dlc; 781 782 BT_DBG("tty %p dev %p", tty, dev); 783 | 1/* 2 RFCOMM implementation for Linux Bluetooth stack (BlueZ). 3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> 4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License version 2 as 8 published by the Free Software Foundation; --- 767 unchanged lines hidden (view full) --- 776 777static int rfcomm_tty_chars_in_buffer(struct tty_struct *tty) 778{ 779 struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; 780 struct rfcomm_dlc *dlc = dev->dlc; 781 782 BT_DBG("tty %p dev %p", tty, dev); 783 |
784 if (skb_queue_len(&dlc->tx_queue)) | 784 if (!skb_queue_empty(&dlc->tx_queue)) |
785 return dlc->mtu; 786 787 return 0; 788} 789 790static void rfcomm_tty_flush_buffer(struct tty_struct *tty) 791{ 792 struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; --- 138 unchanged lines hidden --- | 785 return dlc->mtu; 786 787 return 0; 788} 789 790static void rfcomm_tty_flush_buffer(struct tty_struct *tty) 791{ 792 struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; --- 138 unchanged lines hidden --- |