summaryrefslogtreecommitdiffstats
path: root/drivers/char/hpet.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-10-31 00:03:31 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-31 02:37:29 +0100
commit642d30bbc73512269de1524251ccc378d7782b85 (patch)
tree28dde2739627db059b8c53a654cbaf03a653fb41 /drivers/char/hpet.c
parent[PATCH] HPET: make frequency calculations 32 bit safe (diff)
downloadlinux-642d30bbc73512269de1524251ccc378d7782b85.tar.xz
linux-642d30bbc73512269de1524251ccc378d7782b85.zip
[PATCH] hpet: remove unused variable
The variable hpet_ntimer is never read, so remove it. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Acked-by: Bob Picco <bob.picco@hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/hpet.c')
-rw-r--r--drivers/char/hpet.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index a1eb14e6d9f7..bf2f5a51c687 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -49,7 +49,7 @@
#define HPET_USER_FREQ (64)
#define HPET_DRIFT (500)
-static u32 hpet_ntimer, hpet_nhpet, hpet_max_freq = HPET_USER_FREQ;
+static u32 hpet_nhpet, hpet_max_freq = HPET_USER_FREQ;
/* A lock for concurrent access by app and isr hpet activity. */
static DEFINE_SPINLOCK(hpet_lock);
@@ -854,8 +854,7 @@ int hpet_alloc(struct hpet_data *hdp)
writeq(mcfg, &hpet->hpet_config);
}
- for (i = 0, devp = hpetp->hp_dev; i < hpetp->hp_ntimer;
- i++, hpet_ntimer++, devp++) {
+ for (i = 0, devp = hpetp->hp_dev; i < hpetp->hp_ntimer; i++, devp++) {
unsigned long v;
struct hpet_timer __iomem *timer;