Message ID | 004f01cfc33c$44c1f650$ce45e2f0$%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@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 491609F2A9 for <patchwork-linux-media@patchwork.kernel.org>; Fri, 29 Aug 2014 03:49:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5107C200E8 for <patchwork-linux-media@patchwork.kernel.org>; Fri, 29 Aug 2014 03:49:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 66F4C200DE for <patchwork-linux-media@patchwork.kernel.org>; Fri, 29 Aug 2014 03:49:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752509AbaH2Dtq (ORCPT <rfc822;patchwork-linux-media@patchwork.kernel.org>); Thu, 28 Aug 2014 23:49:46 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:43034 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578AbaH2Dtp (ORCPT <rfc822;linux-media@vger.kernel.org>); Thu, 28 Aug 2014 23:49:45 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NB100G1JUMVJ040@mailout1.samsung.com> for linux-media@vger.kernel.org; Fri, 29 Aug 2014 12:49:43 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A6.D8.02948.758FFF35; Fri, 29 Aug 2014 12:49:43 +0900 (KST) X-AuditID: cbfee68d-f79c46d000000b84-7e-53fff8579449 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 17.A6.05196.758FFF35; Fri, 29 Aug 2014 12:49:43 +0900 (KST) Received: from DOJG1HAN03 ([12.36.165.116]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NB100B6AUMVMMU0@mmp2.samsung.com>; Fri, 29 Aug 2014 12:49:43 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Mauro Carvalho Chehab' <m.chehab@samsung.com> Cc: linux-media@vger.kernel.org, 'Archit Taneja' <archit@ti.com>, 'Jingoo Han' <jg1.han@samsung.com> Subject: [PATCH] [media] v4l: ti-vpe: Remove casting the return value which is a void pointer Date: Fri, 29 Aug 2014 12:49:43 +0900 Message-id: <004f01cfc33c$44c1f650$ce45e2f0$%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: Ac/DPEGmnpMPQWBnTY6Ptjwe8ZOJJg== Content-language: ko x-cr-hashedpuzzle: FbBZ FdbD JXay N+Mc P0wg Qcwc RguN S141 VdEV Vsf1 VwbN V7yw bOyv d4px fR14 gLcP; 4; YQByAGMAaABpAHQAQAB0AGkALgBjAG8AbQA7AGoAZwAxAC4AaABhAG4AQABzAGEAbQBzAHUAbgBnAC4AYwBvAG0AOwBsAGkAbgB1AHgALQBtAGUAZABpAGEAQAB2AGcAZQByAC4AawBlAHIAbgBlAGwALgBvAHIAZwA7AG0ALgBjAGgAZQBoAGEAYgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Sosha1_v1; 7; {028D4744-7A2E-4114-88DD-D5CD6A5E695A}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Fri, 29 Aug 2014 03:49:38 GMT; WwBQAEEAVABD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RJLcUaioRZzUXEiAC094MC/AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsVy+t9jQd3wH/+DDX6u0LG4ve83o8XlhZdY LXo2bGW1uLhO3oHFo2/LKkaP4ze2M3l83iQXwBzVwGiTkZqYklqkkJqXnJ+SmZduq+QdHO8c b2pmYKhraGlhrqSQl5ibaqvk4hOg65aZA7RNSaEsMacUKBSQWFyspG+HaUJoiJuuBUxjhK5v SBBcj5EBGkhYx5hx7UcPW8EFtopXPY3sDYynWbsYOTkkBEwkZn27A2WLSVy4t56ti5GLQ0hg OqPEjjfzmSGc34wSd1r3M4FUsQmoSXz5cpgdxBYRMJLYMX8OWJxZIE1iz6vrLCC2sEC8xIGT f8HiLAKqEjcuLmIDsXkFbCVmz5rIAmELSvyYfI8FoldLYv3O41Bz5CU2r3kLtJgD6CJ1iUd/ dSFW6Uk8aJ4MVSIise/FO0aQ2yQENrBKzGm9wAbxganE8q2n2CYwCs1CsmIWkhWzkKyYhWTW AkaWVYyiqQXJBcVJ6blGesWJucWleel6yfm5mxjBsf5MegfjqgaLQ4wCHIxKPLwdJ/8HC7Em lhVX5h5ilOBgVhLhLXwGFOJNSaysSi3Kjy8qzUktPsRoCgyBicxSosn5wDSUVxJvaGxiZmRp ZGZhZGJuriTOe7DVOlBIID2xJDU7NbUgtQimj4mDU6qBcdV+25uFJ7ZFzZwofXzDlX1K3bz3 +P+3vFxTVW8rUt5nsu/0Gb8b8VfZ97988ahGN0ojhe+Pdearjz+venM95r+7fdvczdyLNQSs IpXmMv4Q2NvxjD2Hcfa2xLDpfq3LVZdvi1Xh+RWW/GkvV/+tFaUbGaUOs5485Xni5sKyZxnv azq+evMFTVFiKc5INNRiLipOBAAlwsjPCwMAAA== 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=-6.9 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/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 972f43f69206..aa7f96852a8c 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers/media/platform/ti-vpe/vpe.c @@ -2343,8 +2343,7 @@ v4l2_dev_unreg: static int vpe_remove(struct platform_device *pdev) { - struct vpe_dev *dev = - (struct vpe_dev *) platform_get_drvdata(pdev); + struct vpe_dev *dev = platform_get_drvdata(pdev); v4l2_info(&dev->v4l2_dev, "Removing " VPE_MODULE_NAME);
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/ti-vpe/vpe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)