From patchwork Mon Sep 9 05:37:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2859501 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 06AE89F495 for ; Mon, 9 Sep 2013 05:37:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3AF4C200F3 for ; Mon, 9 Sep 2013 05:37:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 556AA200F2 for ; Mon, 9 Sep 2013 05:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751408Ab3IIFhH (ORCPT ); Mon, 9 Sep 2013 01:37:07 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:43113 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050Ab3IIFhF (ORCPT ); Mon, 9 Sep 2013 01:37:05 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSU00IM9FKYTOO0@mailout4.samsung.com> for linux-input@vger.kernel.org; Mon, 09 Sep 2013 14:37:04 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 9D.78.30629.08E5D225; Mon, 09 Sep 2013 14:37:04 +0900 (KST) X-AuditID: cbfee68d-b7fe86d0000077a5-55-522d5e80cda7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 83.09.09055.F7E5D225; Mon, 09 Sep 2013 14:37:04 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSU00BR7FLRW070@mmp2.samsung.com>; Mon, 09 Sep 2013 14:37:03 +0900 (KST) From: Jingoo Han To: 'Dmitry Torokhov' Cc: 'Dmitry Torokhov' , linux-input@vger.kernel.org, 'Dudley Du' , 'Jingoo Han' Subject: [PATCH] Input: cypress_ps2 - Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:37:03 +0900 Message-id: <005401cead1e$9d3f7990$d7be6cb0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6tHpiQfwZdmbcqRRqkPr1Q4/JzsQ== Content-language: ko x-cr-hashedpuzzle: FUwX HYus N7Ts Yz2s alOH bXgn cbfo dUIw dWOe ddUk fOOx hdHZ lT9P mFbb waFw 0iod; 5; ZABtAGkAdAByAHkALgB0AG8AcgBvAGsAaABvAHYAQABnAG0AYQBpAGwALgBjAG8AbQA7AGQAdABvAHIAQABtAGEAaQBsAC4AcgB1ADsAZAB1AGQAbABAAGMAeQBwAHIAZQBzAHMALgBjAG8AbQA7AGoAZwAxAC4AaABhAG4AQABzAGEAbQBzAHUAbgBnAC4AYwBvAG0AOwBsAGkAbgB1AHgALQBpAG4AcAB1AHQAQAB2AGcAZQByAC4AawBlAHIAbgBlAGwALgBvAHIAZwA=; Sosha1_v1; 7; {58DCB55A-A6FF-469C-873E-D5AA330BF017}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Mon, 09 Sep 2013 05:36:56 GMT; WwBQAEEAVABDAEgAXQAgAEkAbgBwAHUAdAA6ACAAYwB5AHAAcgBlAHMAcwBfAHAAcwAyACAALQAgAFIAZ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sWRmVeSWpSXmKPExsVy+t9jQd2GON0gg9UX2SwOL3rBaPFw+wtW i+eT77FbXF54idXi5qdvrA6sHm1NmR47Z91l95gy9wirR9+WVYwenzfJBbBGNTDaZKQmpqQW KaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl5gAtV1IoS8wpBQoFJBYX K+nbYZoQGuKmawHTGKHrGxIE12NkgAYS1jFmbNxoV3COreJYt20D40HWLkZODgkBE4mLO1+z QNhiEhfurWfrYuTiEBKYzijx+dc6dgjnF6PEl/lHmECq2ATUJL58OQyU4OAQETCUmLGmCqSG WaCdUeLGyc8sIHFhgXiJuQ2aIOUsAqoS26e2s4HYvAK2EjNv34SyBSV+TL4HtphZQEti/c7j TBC2vMTmNW+ZQcZICKhLPPqrCxIWEdCT+LnhG1S5iMS+F+8YQdZKCLxglVh1eybUA6YSEw+u YprAKDQLyYpZSFbMQrJiFpJZCxhZVjGKphYkFxQnpeca6hUn5haX5qXrJefnbmIEp4BnUjsY VzZYHGIU4GBU4uGV+K8TJMSaWFZcmXuIUYKDWUmE9/xzoBBvSmJlVWpRfnxRaU5q8SHGZGAI TGSWEk3OB6anvJJ4Q2MTMyNLIzMLIxNzc9KElcR5D7RaBwoJpCeWpGanphakFsFsYeLglGpg ZLxhkvvy3JGSVZxF3+7W3TSTefBSqGXi6oXGF35Jz/29bY7zZ7P4ggB7TQfF80arr02/JaZ1 my/uvnLCN+tKd/6zj77PyVjzlP3D6aOR0z3iHz1XlTJ1WPeAP47VS+Lbr9brib9mLN+bHCHJ 96BHaqup0Jw75t8WzJ7ys1psUZOi5rK+cgZ2ByWW4oxEQy3mouJEAAHY70hFAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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..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;