mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 15:06:40 +07:00
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>
This commit is contained in:
parent
097ef18d5a
commit
a53640c3f2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user