]> git.hungrycats.org Git - linux/commit
[PATCH] reduce casting in sysenter.c
authorDave Hansen <haveblue@us.ibm.com>
Fri, 27 Aug 2004 03:34:51 +0000 (20:34 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 Aug 2004 03:34:51 +0000 (20:34 -0700)
commit14be1ebc6901a071d701159c5a2f1cc3c0dcca4c
treea291aaca92520d2fd75d15152ea183528cd7bc05
parentb7515483c5b1e93ededca5f8380f065687c69574
[PATCH] reduce casting in sysenter.c

Ran across this because it's another place where an unsigned long is passed
directly to __pa().  Making the "page" variable a void* seems a bit more
natural than an unsigned long and reduces the net number of casts by 1.
Without it, we probably need another (void *) cast in the __pa() call.

For more explanation as to why this was probably done originally, see this
post: http://marc.theaimsgroup.com/?l=linux-mm&m=109155379124628&w=2

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/sysenter.c