summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/hv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-02-11 14:48:45 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:11:44 -0800
commitd97ae00ea6a632bd97b99431db87d9b505b633a1 (patch)
treecaab35e80d3b487b71c0fbf0322687511a98640b /drivers/staging/hv/hv.c
parente3fe0bb65b2686aa83dabdb1ecc22f5d80c536f8 (diff)
Staging: hv: Cleanup vmalloc calls
The subject says it all. There is no need to specify different page protection bits based on the architecture. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/hv.c')
-rw-r--r--drivers/staging/hv/hv.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/hv/hv.c b/drivers/staging/hv/hv.c
index 31b90736bc04..2d492adb95bb 100644
--- a/drivers/staging/hv/hv.c
+++ b/drivers/staging/hv/hv.c
@@ -230,12 +230,7 @@ int hv_init(void)
* Allocate the hypercall page memory
* virtaddr = osd_page_alloc(1);
*/
-#ifdef __x86_64__
virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_EXEC);
-#else
- virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL,
- __pgprot(__PAGE_KERNEL & (~_PAGE_NX)));
-#endif
if (!virtaddr) {
DPRINT_ERR(VMBUS,