driver: hv: remove cast for kmalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:10:40 +0000 (13:10 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Mar 2013 13:15:57 +0000 (14:15 +0100)
remove cast for kmalloc return value.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: devel@linuxdriverproject.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hv/hv.c

index 731158910c1e25db19cee5eb4ab13e9f6f4d610d..ae4923756d98788490166af3393fecba5a84b6a0 100644 (file)
@@ -289,9 +289,8 @@ void hv_synic_init(void *arg)
        /* Check the version */
        rdmsrl(HV_X64_MSR_SVERSION, version);
 
-       hv_context.event_dpc[cpu] = (struct tasklet_struct *)
-                                       kmalloc(sizeof(struct tasklet_struct),
-                                               GFP_ATOMIC);
+       hv_context.event_dpc[cpu] = kmalloc(sizeof(struct tasklet_struct),
+                                           GFP_ATOMIC);
        if (hv_context.event_dpc[cpu] == NULL) {
                pr_err("Unable to allocate event dpc\n");
                goto cleanup;