summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/cypress_ps2.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-16 08:32:54 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-09-18 07:51:18 -0700
commit221a27c240343b39052c05baa64deace845801ff (patch)
tree6217066fa789ecbab839e48f922e43a50e5369bd /drivers/input/mouse/cypress_ps2.c
parent52764fed5049655926bcecaefd52f0a415ceb105 (diff)
downloadop-kernel-dev-221a27c240343b39052c05baa64deace845801ff.zip
op-kernel-dev-221a27c240343b39052c05baa64deace845801ff.tar.gz
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 <jg1.han@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/cypress_ps2.c')
-rw-r--r--drivers/input/mouse/cypress_ps2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/cypress_ps2.c b/drivers/input/mouse/cypress_ps2.c
index f51765f..ef651cc 100644
--- a/drivers/input/mouse/cypress_ps2.c
+++ b/drivers/input/mouse/cypress_ps2.c
@@ -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;
OpenPOWER on IntegriCloud