mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: Jingoo Han <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
52764fed50
commit
221a27c240
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue