Bluetooth: Fix warning: variable 'tty' set but not used
PATCH v2 2/8 Bluetooth: Fix warning: variable 'tty' set but not used
Resend of this patch to fix whitespace issues
The patch below fixes a warning message
when using gcc 4.6.0
CC [M] drivers/bluetooth/hci_ldisc.odrivers/bluetooth/hci_ldisc.c: In function 'hci_uart_send_frame':drivers/bluetooth/hci_ldisc.c:213:21: warning: variable 'tty' set but not used
--- drivers/bluetooth/hci_ldisc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/bluetooth/hci_ldisc.c +0 -2
@@ -210,7 +210,6 @@ static int hci_uart_close(struct hci_dev *hdev)static int hci_uart_send_frame (struct sk_buff *skb) {struct hci_dev * hdev = (struct hci_dev *) skb->dev; -struct tty_struct *tty;struct hci_uart *hu;if (!hdev) {
@@ -222,7 +221,6 @@ static int hci_uart_send_frame(struct sk_buff *skb)return -EBUSY ; hu = (struct hci_uart *) hdev->driver_data; - tty = hu->tty;BT_DBG ("%s: type %d len %d" , hdev->name,bt_cb (skb)->pkt_type, skb->len);
Signature · 1 line
1.7.1.rc1.21.gf3bd6
Marcel Holtmann
maintainerHi Justin,
Quoted 11 lines
Resend of this patch to fix whitespace issues
The patch below fixes a warning message
when using gcc 4.6.0CC [M]
drivers/bluetooth/hci_ldisc.odrivers/bluetooth/hci_ldisc.c: In function 'hci_uart_send_frame':drivers/bluetooth/hci_ldisc.c:213:21: warning: variable 'tty' set but not usedSigned-off-by Justin P. Mattock <[email protected]>Reviewed-by Gustavo F. Padovan <[email protected]>
patch has been applied to bluetooth-next-2.6 tree. Thanks.
Regards
Marcel
Quoted 11 lines · Marcel Holtmann
Hi Justin,
Quoted 9 lines
Resend of this patch to fix whitespace issues
The patch below fixes a warning message
when using gcc 4.6.0CC [M]
drivers/bluetooth/hci_ldisc.odrivers/bluetooth/hci_ldisc.c: In function 'hci_uart_send_frame':drivers/bluetooth/hci_ldisc.c:213:21: warning: variable 'tty' set but not used
Quoted 11 lines
Quoted 2 lines
Signed-off-by Justin P. Mattock<[email protected]>Reviewed-by Gustavo F. Padovan<[email protected]>patch has been applied to bluetooth-next-2.6 tree. Thanks.
Regards
Marcel
cool..
Justin P. Mattock