From: Clemens Ladisch 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 Cc: Bob Picco Signed-off-by: Andrew Morton --- drivers/char/hpet.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/char/hpet.c~hpet-remove-superfluous-indirections drivers/char/hpet.c --- devel/drivers/char/hpet.c~hpet-remove-superfluous-indirections 2005-10-11 18:09:20.000000000 -0700 +++ devel-akpm/drivers/char/hpet.c 2005-10-11 18:09:20.000000000 -0700 @@ -501,8 +501,8 @@ hpet_ioctl_common(struct hpet_dev *devp, info.hi_ireqfreq = 0; info.hi_flags = readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK; - info.hi_hpet = devp->hd_hpets->hp_which; - info.hi_timer = devp - devp->hd_hpets->hp_dev; + info.hi_hpet = hpetp->hp_which; + info.hi_timer = devp - hpetp->hp_dev; if (kernel) memcpy((void *)arg, &info, sizeof(info)); else _