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

Commit 221a27c2 authored by Jingoo Han's avatar Jingoo Han Committed by Dmitry Torokhov
Browse files

Input: cypress_ps2 - remove casting the return value which is a void pointer



Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 52764fed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -679,7 +679,7 @@ int cypress_init(struct psmouse *psmouse)
{
	struct cytp_data *cytp;

	cytp = (struct cytp_data *)kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
	cytp = kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
	psmouse->private = (void *)cytp;
	if (cytp == NULL)
		return -ENOMEM;