From patchwork Mon Sep 9 05:52:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2859541 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 94F14BF43F for ; Mon, 9 Sep 2013 05:52:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC9EB20251 for ; Mon, 9 Sep 2013 05:52:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 895D12024A for ; Mon, 9 Sep 2013 05:52:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751409Ab3IIFw0 (ORCPT ); Mon, 9 Sep 2013 01:52:26 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:51785 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075Ab3IIFw0 (ORCPT ); Mon, 9 Sep 2013 01:52:26 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSU00E89G9YD040@mailout1.samsung.com> for linux-media@vger.kernel.org; Mon, 09 Sep 2013 14:52:25 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id EC.10.31253.8126D225; Mon, 09 Sep 2013 14:52:24 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-b7-522d6218d7b6 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 45.CC.09055.8126D225; Mon, 09 Sep 2013 14:52:24 +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 <0MSU00BWOGBCW0A0@mmp2.samsung.com>; Mon, 09 Sep 2013 14:52:24 +0900 (KST) From: Jingoo Han To: 'Mauro Carvalho Chehab' Cc: linux-media@vger.kernel.org, 'Kamil Debski' , 'Kyungmin Park' , 'Jingoo Han' Subject: [PATCH 1/5] [media] s5p-g2d: Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:52:24 +0900 Message-id: <005e01cead20$c1c5d690$455183b0$%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: Ac6tILyO2OUf9UqxSR+q4x8NA391cg== Content-language: ko x-cr-hashedpuzzle: AG+C A0u1 EU1O N9a1 Pqey RTBq Z7YC bjal cxJY d8ht f8aJ xHQF yJ3I 4yv9 5wJt 6moH; 5; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGsALgBkAGUAYgBzAGsAaQBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGsAeQB1AG4AZwBtAGkAbgAuAHAAYQByAGsAQABzAGEAbQBzAHUAbgBnAC4AYwBvAG0AOwBsAGkAbgB1AHgALQBtAGUAZABpAGEAQAB2AGcAZQByAC4AawBlAHIAbgBlAGwALgBvAHIAZwA7AG0ALgBjAGgAZQBoAGEAYgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Sosha1_v1; 7; {986C7A6E-169D-4F11-8048-D4F599AB7C2A}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Mon, 09 Sep 2013 05:52:15 GMT; WwBQAEEAVABDAEgAIAAxAC8ANQBdACAAWwBtAGUAZABpAGEAXQ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VeSWpSXmKPExsVy+t9jQV2JJN0gg4YuQYvLCy+xWvx4fYHN 4mzTG3aLng1bWS0urpN3YPXo27KK0ePzJrkApqgGRpuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4 UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wcoG1KCmWJOaVAoYDE4mIlfTtME0JD3HQtYBojdH1D guB6jAzQQMI6xozv+06xFNxiq2iefJi5gfEqaxcjB4eEgInE1X1lXYycQKaYxIV769m6GLk4 hASmM0ocnHyJCcL5xSjxbvEJdpAqNgE1iS9fDoPZIgJGEjvmzwErYhaYyShxfPINsISwQLzE wQ/f2EBsFgFViWOfOlhAbF4BW4mWw5OYIWxBiR+T74HFmQW0JNbvPM4EYctLbF7zlhniOnWJ R391IXbpSTx6vZkVokREYt+Ld4wgeyUEOtgkXk96ywbxgqnE24lrWScwCs1CsmIWkhWzkKyY hWTWAkaWVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjBsf5MagfjygaLQ4wCHIxKPLwS/3WC hFgTy4orcw8xSnAwK4nwnn8OFOJNSaysSi3Kjy8qzUktPsSYDAyBicxSosn5wDSUVxJvaGxi ZmRpZGZhZGJuTpqwkjjvgVbrQCGB9MSS1OzU1ILUIpgtTBycUg2MkmEsBU+av0/56fzEKOHu Tzme9HIB/oSJSzPXFl9JUtC8s/ePabycyyqF7c5ZzgLTDoVy2EsLld8/2H3wxt8pXK3xZdcn yX5ROPWUT+Hf08Wen9P6Zudf/ufQGjrZpGMiQybDyj6+vUe+3X7f8v6OoTM707vJLw7u4O1h e6b2wfCKlZVT2ndfJZbijERDLeai4kQA8brnnjkDAAA= 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);