x86/mm: Clean up types in xlate_dev_mem_ptr() some more
authorIngo Molnar <mingo@kernel.org>
Fri, 8 May 2015 10:43:53 +0000 (12:43 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 8 May 2015 10:43:53 +0000 (12:43 +0200)
commit562bfca4c80175d1d18eef5c3f4bb8dda53c03e4
treea17d6623c7eef6d86b648d26e1d5602c416ee4da
parent99e711101c7822d9ddf39f16c026b97e16a9f517
x86/mm: Clean up types in xlate_dev_mem_ptr() some more

So Linus noticed that in:

  94d4b4765b7d ("x86/mm: Clean up types in xlate_dev_mem_ptr()")

... I added two nonsensical casts, due to the poor type choice
for 'vaddr'.

Change it to 'void *' and take advantage of void * arithmetics.

This removes the casts.

( Also remove a nonsensical return line from unxlate_dev_mem_ptr()
  while at it. )

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/ioremap.c