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: 106040 X-Patchwork-Delegate: dougsland@redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5EKTUYu006247 for ; Mon, 14 Jun 2010 20:29:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756343Ab0FNU2r (ORCPT ); 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 14 Jun 2010 20:29:31 +0000 (UTC) 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);