OSDN Git Service

Staging: hv: Cleanup vmalloc calls
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 11 Feb 2011 22:48:45 +0000 (14:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 21:11:44 +0000 (13:11 -0800)
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>
drivers/staging/hv/hv.c

index 31b9073..2d492ad 100644 (file)
@@ -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,