Commit 3334948428c6370d664099cdcdfd4b487191293d
Committed by
Greg Kroah-Hartman
1 parent
7a4541a659
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
drivers/hv/hv.c
... | ... | @@ -289,9 +289,8 @@ |
289 | 289 | /* Check the version */ |
290 | 290 | rdmsrl(HV_X64_MSR_SVERSION, version); |
291 | 291 | |
292 | - hv_context.event_dpc[cpu] = (struct tasklet_struct *) | |
293 | - kmalloc(sizeof(struct tasklet_struct), | |
294 | - GFP_ATOMIC); | |
292 | + hv_context.event_dpc[cpu] = kmalloc(sizeof(struct tasklet_struct), | |
293 | + GFP_ATOMIC); | |
295 | 294 | if (hv_context.event_dpc[cpu] == NULL) { |
296 | 295 | pr_err("Unable to allocate event dpc\n"); |
297 | 296 | goto cleanup; |