From patchwork Mon Sep 9 05:51:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2859531 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DE0DABF43F for ; Mon, 9 Sep 2013 05:51:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F76120251 for ; Mon, 9 Sep 2013 05:51:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 456CC2024A for ; Mon, 9 Sep 2013 05:51:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751236Ab3IIFvH (ORCPT ); Mon, 9 Sep 2013 01:51:07 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:63188 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075Ab3IIFvF (ORCPT ); Mon, 9 Sep 2013 01:51:05 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSU00ESUG9492P0@mailout3.samsung.com> for linux-media@vger.kernel.org; Mon, 09 Sep 2013 14:51:04 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id B5.7F.30629.8C16D225; Mon, 09 Sep 2013 14:51:04 +0900 (KST) X-AuditID: cbfee68d-b7fe86d0000077a5-80-522d61c83da9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 70.00.05832.8C16D225; Mon, 09 Sep 2013 14:51: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 <0MSU00CPEG94LQ70@mmp2.samsung.com>; Mon, 09 Sep 2013 14:51:04 +0900 (KST) From: Jingoo Han To: 'Mauro Carvalho Chehab' Cc: linux-media@vger.kernel.org, 'Kamil Debski' , 'Kyungmin Park' Subject: [PATCH 1/5] [media] s5p-g2d: Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:51:04 +0900 Message-id: <005d01cead20$92209290$b661b7b0$%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: Ac6tII6g7KNtOjJyR7eUDVVVEW0jiQ== Content-language: ko x-cr-hashedpuzzle: Kuow LBJ0 L3K/ OgVx PX8K SIcS TXLB VnYh Vrl4 bBRf cG5d cSXn cbO7 dZH7 j4jV lEQP; 4; awAuAGQAZQBiAHMAawBpAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAawB5AHUAbgBnAG0AaQBuAC4AcABhAHIAawBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAG0AZQBkAGkAYQBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbQAuAGMAaABlAGgAYQBiAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtAA==; Sosha1_v1; 7; {20BAA33E-CABA-4587-B210-CEA9EE3ED510}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Mon, 09 Sep 2013 05:50:58 GMT; WwBQAEEAVABDAEgAIAAxAC8ANQBdACAAWwBtAGUAZABpAGEAXQAgAHMANQBwAC0AZwAyAGQAOgAgAFIAZQBtAG8AdgBlACAAYwBhAHMAdABpAG4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1ZxejxeZNcAFNUA6NNRmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZgaGu oaWFuZJCXmJuqq2Si0+ArltmDtAiJYWyxJxSoFBAYnGxkr4dpgmhIW66FjCNEbq+IUFwPUYG aCBhHWPG932nWApusVU0Tz7M3MB4lbWLkZNDQsBEYtmBj2wQtpjEhXvrgWwuDiGB6YwSzevO sUM4vxglJr2ZBdbBJqAm8eXLYXYQW0TASGLH/DlMIDazQKnEzjmvGEFsYYF4iYMfvoFNZRFQ ldh9vRcszitgK7Hjx04WCFtQ4sfkeywQvVoS63ceh5ojL7F5zVvmLkYOoIvUJR791YVYpSfx YNtWVogSEYl9L94xgtwmIXCFVWLTvq8sEB+YSvQc/s80gVFoFpIVs5CsmIVkxSwksxYwsqxi FE0tSC4oTkrPNdIrTswtLs1L10vOz93ECI7wZ9I7GFc1WBxiFOBgVOLhvSGoGyTEmlhWXJl7 iFGCg1lJhPf8c50gId6UxMqq1KL8+KLSnNTiQ4zJwBCYyCwlmpwPTD55JfGGxiZmRpZGZhZG JubmpAkrifMebLUOFBJITyxJzU5NLUgtgtnCxMEp1cDIvnzFE3OddzcMBB781tlf8MTgnZvA N61/DnzJabvjJ/bfmvxGRXCRVujbu66LTz95/O7TdDM7lmeLkn8e5zFmZ/8//aC7QrBYdus+ wQPsutY8+61aa5bOeJ667iD3+biL3Iav14uweKpcvyDEIfFU73p4VUz8YpXXHTo260Wuy3f+ lsiOMxFTYinOSDTUYi4qTgQAxpb+BTQDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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/media/platform/s5p-g2d/g2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c index fd6289d..0b29483 100644 --- a/drivers/media/platform/s5p-g2d/g2d.c +++ b/drivers/media/platform/s5p-g2d/g2d.c @@ -840,7 +840,7 @@ put_clk: static int g2d_remove(struct platform_device *pdev) { - struct g2d_dev *dev = (struct g2d_dev *)platform_get_drvdata(pdev); + struct g2d_dev *dev = platform_get_drvdata(pdev); v4l2_info(&dev->v4l2_dev, "Removing " G2D_NAME); v4l2_m2m_release(dev->m2m_dev);