diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-10-30 18:03:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:30 -0500 |
commit | c860ed9fb5d320407f99190ab2e31bfe74db6724 (patch) | |
tree | 69c650e001738130ac69152a195ae824b5ef2ee4 /drivers/char/hpet.c | |
parent | 3d5640d1c7584689227256beeb63354c9a5baf2d (diff) |
[PATCH] hpet: remove superfluous indirections
In the hpet_ioctl_common() function, devp->hd_hpets is already cached in the
hpetp variable, so we can use just that.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index cdf2ec842e2c..cf325622b396 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -501,8 +501,8 @@ hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg, int kernel) | |||
501 | info.hi_ireqfreq = 0; | 501 | info.hi_ireqfreq = 0; |
502 | info.hi_flags = | 502 | info.hi_flags = |
503 | readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK; | 503 | readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK; |
504 | info.hi_hpet = devp->hd_hpets->hp_which; | 504 | info.hi_hpet = hpetp->hp_which; |
505 | info.hi_timer = devp - devp->hd_hpets->hp_dev; | 505 | info.hi_timer = devp - hpetp->hp_dev; |
506 | if (kernel) | 506 | if (kernel) |
507 | memcpy((void *)arg, &info, sizeof(info)); | 507 | memcpy((void *)arg, &info, sizeof(info)); |
508 | else | 508 | else |