Skip to contentSkip to conversation

Bluetooth: Fix warning: variable 'tty' set but not used

PATCH In review Justin P. Mattock 2 participants 3 messages Jun 15, 2010 – Jul 8, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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.o
drivers/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
index 76a1abb..e8beffe 100644
@@ -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
maintainer
#1 lore raw

Hi Justin,

Quoted 11 lines

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.o
drivers/bluetooth/hci_ldisc.c: In function 'hci_uart_send_frame':
drivers/bluetooth/hci_ldisc.c:213:21: warning: variable 'tty' set but not used

patch has been applied to bluetooth-next-2.6 tree. Thanks.

Regards

Marcel

#2 lore raw
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.0

CC [M] drivers/bluetooth/hci_ldisc.o
drivers/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

patch has been applied to bluetooth-next-2.6 tree. Thanks.

Regards

Marcel

cool..

Justin P. Mattock