From patchwork Mon Sep 9 05:53:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2859551 Return-Path: X-Original-To: patchwork-linux-media@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 2D3B39F499 for ; Mon, 9 Sep 2013 05:53:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F11820251 for ; Mon, 9 Sep 2013 05:53:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F20A2024A for ; Mon, 9 Sep 2013 05:53:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751848Ab3IIFxm (ORCPT ); Mon, 9 Sep 2013 01:53:42 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:52012 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572Ab3IIFxl (ORCPT ); Mon, 9 Sep 2013 01:53:41 -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 <0MSU00EAPGD9D040@mailout1.samsung.com> for linux-media@vger.kernel.org; Mon, 09 Sep 2013 14:53:40 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id AF.A0.31253.3626D225; Mon, 09 Sep 2013 14:53:39 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-64-522d62630dea Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 23.80.05832.3626D225; Mon, 09 Sep 2013 14:53:39 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSU000WCGDFLL10@mmp1.samsung.com>; Mon, 09 Sep 2013 14:53:39 +0900 (KST) From: Jingoo Han To: 'Mauro Carvalho Chehab' Cc: linux-media@vger.kernel.org, 'Jingoo Han' References: <005e01cead20$c1c5d690$455183b0$%han@samsung.com> In-reply-to: <005e01cead20$c1c5d690$455183b0$%han@samsung.com> Subject: [PATCH 2/5] [media] m2m-deinterlace: Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:53:39 +0900 Message-id: <005f01cead20$eedfb4c0$cc9f1e40$%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+q4x8NA391cgAAAvpA Content-language: ko x-cr-hashedpuzzle: BkS8 FnrA FvGz Iuo3 IziG J7N9 LfpZ MmAw ON2q PCoQ RFwU RnTN Tk9m Z3vA a7RU embp; 3; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAG0AZQBkAGkAYQBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbQAuAGMAaABlAGgAYQBiAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtAA==; Sosha1_v1; 7; {72E57390-151D-49FB-A0CA-9A4B526175ED}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Mon, 09 Sep 2013 05:53:35 GMT; WwBQAEEAVABDAEgAIAAyAC8ANQBdACAAWwBtAGUAZABpAGEAXQAgAG0AMgBtAC0AZABlAGkAbgB0AGUAcgBsAGEAYwBlADoAIABSAGUAbQBvAHYAZQAgAGMAY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JN0gg9dHLC0uL7zEatGzYSur xcV18g7MHn1bVjF6fN4kF8AU1cBok5GamJJapJCal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6k kJeYm2qr5OIToOuWmQO0Q0mhLDGnFCgUkFhcrKRvh2lCaIibrgVMY4Sub0gQXI+RARpIWMeY 0T97A1vBevaKZS2vmRsYl7N1MXJwSAiYSLT8tuhi5AQyxSQu3FsPFObiEBJYxCjRsOkhM4Tz i1Hi1sf57CBVbAJqEl++HAazRQSMJHbMn8MEYjMLOEu82DSXGWSokICtRO+jYJAwp4CdxMH9 0xhBwsIC6RKTvuSDhFkEVCVmbvzIBmLzAlX/uHSdGcIWlPgx+R4LxEQtifU7j0NNl5fYvOYt M8TJ6hKP/urCHLDo7ixGiBIRiX0v3jGCXCwhsIRV4squrawQf5lKvN49gXUCo8gsJCtmIVkx C8mKWUhmLWBkWcUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRnACeSe9gXNVgcYhRgINRiYf3 hqBukBBrYllxZe4hRgkOZiUR3vPPdYKEeFMSK6tSi/Lji0pzUosPMSYDQ2Ais5Rocj4wOeWV xBsam5gZWRqZWRiZmJuTJqwkznuw1TpQSCA9sSQ1OzW1ILUIZgsTB6dUA2OaZ6V7lvIW2e3X Ly8/k7Rudm5Tqv4CD5uL7W0KDiUX/a1THpxPfmRWnRN2NNkuNySniE8vJf+67WV9j6ApXakd r65MV287Uveso+F50JXvf5Z+6++w7PWrylz+1/f2B5M860cuM8Nmz2Ns1Km9Kbgi7Qx/5BXz nybJZQ/Pxi3yj3STS6lfrcRSnJFoqMVcVJwIAAOI/KdEAwAA 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/m2m-deinterlace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c index 540516c..36513e8 100644 --- a/drivers/media/platform/m2m-deinterlace.c +++ b/drivers/media/platform/m2m-deinterlace.c @@ -1084,8 +1084,7 @@ free_dev: static int deinterlace_remove(struct platform_device *pdev) { - struct deinterlace_dev *pcdev = - (struct deinterlace_dev *)platform_get_drvdata(pdev); + struct deinterlace_dev *pcdev = platform_get_drvdata(pdev); v4l2_info(&pcdev->v4l2_dev, "Removing " MEM2MEM_TEST_MODULE_NAME); v4l2_m2m_release(pcdev->m2m_dev);