From patchwork Mon Jun 14 20:26:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Justin P. Mattock" X-Patchwork-Id: 3654 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Mon, 14 Jun 2010 20:29:27 +0000 Received: from bombadil.infradead.org [18.85.46.34] by localhost with IMAP (fetchmail-6.3.17) for (single-drop); Tue, 15 Jun 2010 07:59:49 +0300 (EEST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OOGHf-00053T-Gp; Mon, 14 Jun 2010 20:29:27 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756343Ab0FNU2r (ORCPT + 1 other); Mon, 14 Jun 2010 16:28:47 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:65524 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755660Ab0FNU0v (ORCPT ); Mon, 14 Jun 2010 16:26:51 -0400 Received: by pxi8 with SMTP id 8so3026668pxi.19 for ; Mon, 14 Jun 2010 13:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=EmDi2WRRgNeEGQZJxzc/t6wduO3Ua4jLQkQhnKLmuaA=; b=NNIaH3FaCnJqgxxrEW1bJgRdsFUpSRIcK1cAjtahpp9Bsb3WFVOjTPoKes0baFl8Ep iJAXvDNcrG4svUG1vKntxPmGCL2NEdxa6lJYFQ4sUdL6O/cQHxY5aweJ/TOEkOwmq+8b 16gyyC13FNJT9msPbWraC7PSQ3FLOyg1eku00= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=hYXe6xA5ABKcYZQFSDTdXWAfhkFvdxuTXwVuqjZPEVkBnJSpcsA1SRI2q66gnMSAjN CV+9ywXBivARiVLUt25yZnLkmyrd/EoNgvPh5uV7vwbxSDeLk82VgOY6HaqEun/JgLd7 UmSpIBZkUEqZAx02g0QURnohmFXHz7ywld7M0= Received: by 10.115.113.18 with SMTP id q18mr4892792wam.220.1276547210666; Mon, 14 Jun 2010 13:26:50 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id r20sm58982854wam.5.2010.06.14.13.26.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 13:26:50 -0700 (PDT) From: "Justin P. Mattock" To: linux-kernel@vger.kernel.org Cc: reiserfs-devel@vger.kernel.org, linux-bluetooth@vger.kernel.org, clemens@ladisch.de, debora@linux.vnet.ibm.com, dri-devel@lists.freedesktop.org, linux-i2c@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-media@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 2/8]bluetooth/hci_ldisc.c Fix warning: variable 'tty' set but not used Date: Mon, 14 Jun 2010 13:26:42 -0700 Message-Id: <1276547208-26569-3-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 In-Reply-To: <1276547208-26569-1-git-send-email-justinmattock@gmail.com> References: <1276547208-26569-1-git-send-email-justinmattock@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Im getting this while building: 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 the below fixed it for me, but am not sure if it's correct. Signed-off-by: Justin P. Mattock --- drivers/bluetooth/hci_ldisc.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 76a1abb..f693dfe 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,8 +221,7 @@ 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); hu->proto->enqueue(hu, skb);