* [PATCH 2/8 v2]Bluetooth: Fix warning: variable 'tty' set but not used
@ 2010-06-15 1:26 Justin P. Mattock
2010-07-08 21:07 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Justin P. Mattock @ 2010-06-15 1:26 UTC (permalink / raw)
To: linux-bluetooth; +Cc: gustavo, linux-kernel, Justin P. Mattock
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
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Reviewed-By: Gustavo F. Padovan <gustavo@padovan.org>
---
drivers/bluetooth/hci_ldisc.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index 76a1abb..e8beffe 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -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);
--
1.7.1.rc1.21.gf3bd6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/8 v2]Bluetooth: Fix warning: variable 'tty' set but not used
2010-06-15 1:26 [PATCH 2/8 v2]Bluetooth: Fix warning: variable 'tty' set but not used Justin P. Mattock
@ 2010-07-08 21:07 ` Marcel Holtmann
2010-07-08 21:25 ` Justin P. Mattock
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2010-07-08 21:07 UTC (permalink / raw)
To: Justin P. Mattock; +Cc: linux-bluetooth, gustavo, linux-kernel
Hi Justin,
> 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
>
>
> Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
> Reviewed-By: Gustavo F. Padovan <gustavo@padovan.org>
patch has been applied to bluetooth-next-2.6 tree. Thanks.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/8 v2]Bluetooth: Fix warning: variable 'tty' set but not used
2010-07-08 21:07 ` Marcel Holtmann
@ 2010-07-08 21:25 ` Justin P. Mattock
0 siblings, 0 replies; 3+ messages in thread
From: Justin P. Mattock @ 2010-07-08 21:25 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth, gustavo, linux-kernel
On 07/08/2010 02:07 PM, Marcel Holtmann wrote:
> Hi Justin,
>
>> 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
>>
>>
>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com>
>> Reviewed-By: Gustavo F. Padovan<gustavo@padovan.org>
>
> patch has been applied to bluetooth-next-2.6 tree. Thanks.
>
> Regards
>
> Marcel
>
>
>
cool..
Justin P. Mattock
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-08 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15 1:26 [PATCH 2/8 v2]Bluetooth: Fix warning: variable 'tty' set but not used Justin P. Mattock
2010-07-08 21:07 ` Marcel Holtmann
2010-07-08 21:25 ` Justin P. Mattock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).