summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-12 09:10:40 +0400
committerJiri Kosina <jkosina@suse.cz>2013-03-18 17:15:57 +0400
commita53640c3f2d11a15d7834844d06554a6b1d2dce3 (patch)
tree2dbc4b35bcdf777c451faaa7f20f75ec01ecf293
parent097ef18d5aa9d2822647d39038d4f3e96e64d87b (diff)
downloadlinux-a53640c3f2d11a15d7834844d06554a6b1d2dce3.tar.xz
driver: hv: remove cast for kmalloc return value
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>
-rw-r--r--drivers/hv/hv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
index 731158910c1e..ae4923756d98 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -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;