Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33349484 authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Greg Kroah-Hartman
Browse files

driver: hv: remove cast for kmalloc return value



remove cast for kmalloc return value.

Signed-off-by: default avatarZhang 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7a4541a6
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -289,8 +289,7 @@ 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),
	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");