[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1381962675-26876-1-git-send-email-geyslan@gmail.com>
Date: Wed, 16 Oct 2013 19:31:15 -0300
From: "Geyslan G. Bem" <geyslan@...il.com>
To: dmitry.torokhov@...il.com
Cc: dudl@...ress.com, kamal@...onical.com, mario_limonciello@...l.com,
git@...tus.e4ward.com, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-br@...glegroups.com,
"Geyslan G. Bem" <geyslan@...il.com>
Subject: [PATCH v2] drivers: input: mouse: Remove useless casting in cypress_ps2.c
Get rid of unnecessary (void *) casting in 'cypress_init' function.
Signed-off-by: Geyslan G. Bem <geyslan@...il.com>
---
drivers/input/mouse/cypress_ps2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/mouse/cypress_ps2.c b/drivers/input/mouse/cypress_ps2.c
index f51765f..b87d7ba 100644
--- a/drivers/input/mouse/cypress_ps2.c
+++ b/drivers/input/mouse/cypress_ps2.c
@@ -680,7 +680,7 @@ int cypress_init(struct psmouse *psmouse)
struct cytp_data *cytp;
cytp = (struct cytp_data *)kzalloc(sizeof(struct cytp_data), GFP_KERNEL);
- psmouse->private = (void *)cytp;
+ psmouse->private = cytp;
if (cytp == NULL)
return -ENOMEM;
--
1.8.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists