From: Ingo Molnar Date: Fri, 8 May 2015 10:43:53 +0000 (+0200) Subject: x86/mm: Clean up types in xlate_dev_mem_ptr() some more X-Git-Tag: omap-for-v4.2/fixes-rc1^2~178^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=562bfca4c80175d1d18eef5c3f4bb8dda53c03e4;p=pandora-kernel.git 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 Cc: Borislav Petkov Cc: H. Peter Anvin Cc: Thomas Gleixner Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed