From patchwork Mon Jun 14 20:26:43 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: 3647 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Mon, 14 Jun 2010 20:28:17 +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:45 +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 1OOGGX-0004yF-2c; Mon, 14 Jun 2010 20:28:17 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755784Ab0FNU04 (ORCPT + 1 other); Mon, 14 Jun 2010 16:26:56 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:43718 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755730Ab0FNU0x (ORCPT ); Mon, 14 Jun 2010 16:26:53 -0400 Received: by mail-pw0-f46.google.com with SMTP id 1so3012616pwi.19 for ; Mon, 14 Jun 2010 13:26:53 -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=Qyhl6upwx+j7+fmGj0MNDZMVLmZ8FA1fEzcr77Q1mbU=; b=NMpwL2/VAVrYy9baCAeKoIGtwWXEybygzTGZ5/RAzW1sBdzfK6nSItwkhF693o3sVv HG1HF+owKHmUznX5aXmP8LWe4GCwktxL+nSo9Cl2ox44KAUEycGsfkCk5m4Emb67gwiu ewhxjkwZ3sK3ijj+X+PRqHs9JUbyHxu9QjLmU= 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=sxCHVEB5KBOpUf10byrtsi/mKuYJPR7Vk39zVKeUT8b37gE3xQKPx8RCxp6M5sXDVP 2TG8ESIZccIfgRf5369teRNsEQ2qsH13/wWny8BmxsfdpIyCDY6D9Fd0+WSF2vLr1vVz M3hPIY/aqDj8dLuXkAB/Mjqx793Y4y4kmfC0w= Received: by 10.115.144.3 with SMTP id w3mr4948025wan.7.1276547213115; Mon, 14 Jun 2010 13:26:53 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id r20sm58982854wam.5.2010.06.14.13.26.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 13:26:52 -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 3/8]char/hpet.c Fix variable 'hpet' set but not used Date: Mon, 14 Jun 2010 13:26:43 -0700 Message-Id: <1276547208-26569-4-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 The below fixes this warning: drivers/char/hpet.c: In function 'hpet_ioctl_common': drivers/char/hpet.c:559:23: warning: variable 'hpet' set but not used please have a look. Signed-off-by: Justin P. Mattock --- drivers/char/hpet.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index a0a1829..7932858 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -556,7 +556,6 @@ static int hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg, int kernel) { struct hpet_timer __iomem *timer; - struct hpet __iomem *hpet; struct hpets *hpetp; int err; unsigned long v; @@ -568,7 +567,6 @@ hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg, int kernel) case HPET_DPI: case HPET_IRQFREQ: timer = devp->hd_timer; - hpet = devp->hd_hpet; hpetp = devp->hd_hpets; break; case HPET_IE_ON: