aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv/hv.c
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-12 01:10:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 14:22:24 -0400
commit3334948428c6370d664099cdcdfd4b487191293d (patch)
tree63ec65105d378fb3061b6cafc378ab4402e7f5f6 /drivers/hv/hv.c
parent7a4541a6591d8b0f6d095ffd94c8ebae75ea57d7 (diff)
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv.c')
-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)
289 /* Check the version */ 289 /* Check the version */
290 rdmsrl(HV_X64_MSR_SVERSION, version); 290 rdmsrl(HV_X64_MSR_SVERSION, version);
291 291
292 hv_context.event_dpc[cpu] = (struct tasklet_struct *) 292 hv_context.event_dpc[cpu] = kmalloc(sizeof(struct tasklet_struct),
293 kmalloc(sizeof(struct tasklet_struct), 293 GFP_ATOMIC);
294 GFP_ATOMIC);
295 if (hv_context.event_dpc[cpu] == NULL) { 294 if (hv_context.event_dpc[cpu] == NULL) {
296 pr_err("Unable to allocate event dpc\n"); 295 pr_err("Unable to allocate event dpc\n");
297 goto cleanup; 296 goto cleanup;