Message ID | 006201cead21$47222870$d5667950$%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 CB565BF43F for <patchwork-linux-media@patchwork.kernel.org>; Mon, 9 Sep 2013 05:56:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 003E62035A for <patchwork-linux-media@patchwork.kernel.org>; Mon, 9 Sep 2013 05:56:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1417B202EB for <patchwork-linux-media@patchwork.kernel.org>; Mon, 9 Sep 2013 05:56:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751342Ab3IIF4L (ORCPT <rfc822;patchwork-linux-media@patchwork.kernel.org>); Mon, 9 Sep 2013 01:56:11 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:46766 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751240Ab3IIF4K (ORCPT <rfc822; linux-media@vger.kernel.org>); Mon, 9 Sep 2013 01:56:10 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSU00IWOGHKTOP0@mailout4.samsung.com> for linux-media@vger.kernel.org; Mon, 09 Sep 2013 14:56:09 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 2D.D6.29948.8F26D225; Mon, 09 Sep 2013 14:56:08 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-ac-522d62f82a43 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 49.9D.09055.7F26D225; Mon, 09 Sep 2013 14:56:08 +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 <0MSU0004XGHJKI20@mmp1.samsung.com>; Mon, 09 Sep 2013 14:56:07 +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 5/5] [media] ddbridge: Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:56:07 +0900 Message-id: <006201cead21$47222870$d5667950$%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+q4x8NA391cgAAGvhw Content-language: ko x-cr-hashedpuzzle: Ed1N E43L L0KB Oie4 PfQS RG+M URPX XDuM Xg3c YG3E Zzax aUJ1 aug5 dewA d3ZZ kAyt; 3; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAG0AZQBkAGkAYQBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbQAuAGMAaABlAGgAYQBiAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtAA==; Sosha1_v1; 7; {45535F7F-6348-47B7-803A-CA66DB6CF805}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Mon, 09 Sep 2013 05:56:02 GMT; WwBQAEEAV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Wc1FxIgDxC2Wy6QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEKsWRmVeSWpSXmKPExsVy+t9jAd0fSbpBBq/jLS4vvMRq0bNhK6vF xXXyDswefVtWMXp83iQXwBTVwGiTkZqYklqkkJqXnJ+SmZduq+QdHO8cb2pmYKhraGlhrqSQ l5ibaqvk4hOg65aZA7RCSaEsMacUKBSQWFyspG+HaUJoiJuuBUxjhK5vSBBcj5EBGkhYx5jR 9/opa8ENtoptK+6zNjBeZO1i5OSQEDCRuPBzFwuELSZx4d56ti5GLg4hgUWMEmcenIdyfjFK 7J+5ixGkik1ATeLLl8PsILaIgJHEjvlzmEBsZgFniReb5jJ3MXIANdhK9D4KBglzCthJHNw/ DaxVWCBBYv6hi2wgNouAqsSFi5PBbF6g8tUP77BD2IISPybfY4EYqSWxfudxqPHyEpvXvAUb LyGgLvHory7MBc//rGCHKBGR2PfiHSPIyRICE1glTv95B/WkqcSKjsvsExhFZiFZMQvJillI VsxCMmsBI8sqRtHUguSC4qT0XEO94sTc4tK8dL3k/NxNjOAU8ExqB+PKBotDjAIcjEo8vBL/ dYKEWBPLiitzDzFKcDArifCefw4U4k1JrKxKLcqPLyrNSS0+xJgMDIGJzFKiyfnA9JRXEm9o bGJmZGlkZmFkYm5OmrCSOO+BVutAIYH0xJLU7NTUgtQimC1MHJxSDYyKjHZLSpZ7LV2kr7fl 7JGFxZc/FUfuCzpazSvuW7MjJDgm1f698vRQl46+wF/CVYzXJl3/FHHs40m/ExkTBdn3HJ73 Vr83QnlSgBTPCr/UZ0GiEj33M6I9OxZLRD5fp7D+lDe3t9+DCYlzS+Jc7GeU213m0e28l8G+ I9nuy1t93ivbbf94CyuxFGckGmoxFxUnAgCrP7EbRQMAAA== 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/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index 36e3452..9375f30 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c @@ -1544,7 +1544,7 @@ static void ddb_unmap(struct ddb *dev) static void ddb_remove(struct pci_dev *pdev) { - struct ddb *dev = (struct ddb *) pci_get_drvdata(pdev); + struct ddb *dev = pci_get_drvdata(pdev); ddb_ports_detach(dev); ddb_i2c_release(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/pci/ddbridge/ddbridge-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)