projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5640d
)
[PATCH] hpet: remove superfluous indirections
author
Clemens Ladisch
<
[email protected]
>
Sun, 30 Oct 2005 23:03:40 +0000
(15:03 -0800)
committer
Linus Torvalds
<
[email protected]
>
Mon, 31 Oct 2005 01:37:30 +0000
(17:37 -0800)
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 <
[email protected]
>
Cc: Bob Picco <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/hpet.c
patch
|
blob
|
history
diff --git
a/drivers/char/hpet.c
b/drivers/char/hpet.c
index cdf2ec842e2c247161eebc1a8a2a3fcc7f27869a..cf325622b396f31e4e14bec78538ad537aec60be 100644
(file)
--- 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)
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