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

Commit 642f0f2a authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Oded Gabbay
Browse files

drm/amdkfd: Remove unnecessary cast in kfree



Remove an unnecassary cast in the argument to kfree.

Found using Coccinelle. The semantic patch used to find this is as follows:

//<smpl>
@@
type T;
expression *f;
@@

- kfree((T *)(f));
+ kfree(f);
//</smpl>

Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent f785d987
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ static void kfd_process_wq_release(struct work_struct *work)

	kfree(p);

	kfree((void *)work);
	kfree(work);
}

static void kfd_process_destroy_delayed(struct rcu_head *rcu)