Message ID | 006001cead21$0b193350$214b99f0$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-media-owner@kernel.org> 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 5F3D0BF43F for <patchwork-linux-media@patchwork.kernel.org>; Mon, 9 Sep 2013 05:54:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9662920251 for <patchwork-linux-media@patchwork.kernel.org>; Mon, 9 Sep 2013 05:54:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB49E2024A for <patchwork-linux-media@patchwork.kernel.org>; Mon, 9 Sep 2013 05:54:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751869Ab3IIFy3 (ORCPT <rfc822;patchwork-linux-media@patchwork.kernel.org>); Mon, 9 Sep 2013 01:54:29 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:63853 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298Ab3IIFy2 (ORCPT <rfc822; linux-media@vger.kernel.org>); Mon, 9 Sep 2013 01:54:28 -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 <0MSU00E0CGER92Q0@mailout3.samsung.com> for linux-media@vger.kernel.org; Mon, 09 Sep 2013 14:54:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 44.E0.30629.3926D225; Mon, 09 Sep 2013 14:54:27 +0900 (KST) X-AuditID: cbfee68d-b7fe86d0000077a5-22-522d6293de61 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CC.2D.09055.3926D225; Mon, 09 Sep 2013 14:54:27 +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 <0MSU001E4GER1K00@mmp1.samsung.com>; Mon, 09 Sep 2013 14:54:27 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Mauro Carvalho Chehab' <m.chehab@samsung.com> Cc: linux-media@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com> References: <005e01cead20$c1c5d690$455183b0$%han@samsung.com> In-reply-to: <005e01cead20$c1c5d690$455183b0$%han@samsung.com> Subject: [PATCH 3/5] [media] mem2mem_testdev: Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:54:27 +0900 Message-id: <006001cead21$0b193350$214b99f0$%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+q4x8NA391cgAADFeQ Content-language: ko x-cr-hashedpuzzle: Bp7A ElLj EuL9 I5pV KSUh NDVh OCaL U9Xt VieB V9Mq XPzn XpVP ZZrQ agAW bqfx dZsf; 3; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAG0AZQBkAGkAYQBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbQAuAGMAaABlAGgAYQBiAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtAA==; Sosha1_v1; 7; {C66642C9-7995-4ADF-93E6-13CC448EF90C}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Mon, 09 Sep 2013 05:54:22 GMT; Ww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FXPyyR l/qkxFKckWioxVxUnAgA+77zTecCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIKsWRmVeSWpSXmKPExsVy+t9jAd3JSbpBBoeeC1pcXniJ1aJnw1ZW i4vr5B2YPfq2rGL0+LxJLoApqoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJ IS8xN9VWycUnQNctMwdoh5JCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsI4x 4/XSDtaCGewVO1uPMDYwTmDrYuTkkBAwkXj9+gMLhC0mceHeeqA4F4eQwCJGib4XPawQzi9G icXbWsGq2ATUJL58OcwOYosIGEnsmD+HCcRmFnCWeLFpLnMXIwdQg61E76NgkDCngJ3Ewf3T GEFsYYF0icWX1rCAlLAIqEpc3mgFEuYFqn705hUThC0o8WPyPRaIiVoS63ceh5ouL7F5zVuw 6RIC6hKP/urCHHDow2d2iBIRiX0v3jFCvLKEVeJ0nwqEbSrx5Uwr8wRGkVlINsxCsmEWkg2z kIxawMiyilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyM4ATyT2sG4ssHiEKMAB6MSD6/Ef50g IdbEsuLK3EOMEhzMSiK8558DhXhTEiurUovy44tKc1KLDzEmA/0/kVlKNDkfmJzySuINjU3M jCyNzCyMTMzNSRNWEuc90GodKCSQnliSmp2aWpBaBLOFiYNTqoExNtLlx8VPeQ7PZxVUvQh6 YfBJwEI26ye7xdnJX2f9S3y77l79o6XtM+sdC9LtJ7ypu9Df8LnD2OyJql2msh/jk/PLLSSm uv5Z8zL68BJXoYnTTfYnhqmXfPBziPjs3pMv8X+Slsfd357fijL09h64562sU2ztIbfcN1Lp 0LxT8nEdN79ZPNigxFKckWioxVxUnAgAfiMDYkQDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> 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 |
diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index 6a17676..8df5975 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c @@ -1090,8 +1090,7 @@ unreg_dev: static int m2mtest_remove(struct platform_device *pdev) { - struct m2mtest_dev *dev = - (struct m2mtest_dev *)platform_get_drvdata(pdev); + struct m2mtest_dev *dev = platform_get_drvdata(pdev); v4l2_info(&dev->v4l2_dev, "Removing " MEM2MEM_TEST_MODULE_NAME); v4l2_m2m_release(dev->m2m_dev);
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 <jg1.han@samsung.com> --- drivers/media/platform/mem2mem_testdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)