From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755647Ab0FOB0h (ORCPT ); Mon, 14 Jun 2010 21:26:37 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:53792 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755055Ab0FOB0f (ORCPT ); Mon, 14 Jun 2010 21:26:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=r6Zi3jUKpyVqF1Iez2iCgedA2TbqmSWPbqWV2kNaybCWJEYzyjw9Wc2CMSTfcossUa pORRVwQQfPUH95LmA4Uq9zvlHNGvQTK4Nju+haUEdwBqasr+BK9NQQAexoNDpXSMAJh+ kApDF/SWTQoamingnAD4s0B3v6A4iU5J64XSk= From: "Justin P. Mattock" To: linux-bluetooth@vger.kernel.org Cc: gustavo@padovan.org, linux-kernel@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 2/8 v2]Bluetooth: Fix warning: variable 'tty' set but not used Date: Mon, 14 Jun 2010 18:26:40 -0700 Message-Id: <1276565200-5583-1-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-By: Gustavo F. Padovan --- 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