From patchwork Mon Sep 9 05:55:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2859571 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 C691FBF43F for ; Mon, 9 Sep 2013 05:55:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 111EE2035A for ; Mon, 9 Sep 2013 05:55:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35D09202EB for ; Mon, 9 Sep 2013 05:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751298Ab3IIFzc (ORCPT ); Mon, 9 Sep 2013 01:55:32 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:52336 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751240Ab3IIFzb (ORCPT ); Mon, 9 Sep 2013 01:55:31 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSU00D4AGG1UP40@mailout1.samsung.com> for linux-media@vger.kernel.org; Mon, 09 Sep 2013 14:55:18 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id A0.5E.17682.2C26D225; Mon, 09 Sep 2013 14:55:14 +0900 (KST) X-AuditID: cbfee68e-b7f756d000004512-e8-522d62c2e15d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 17.6D.09055.2C26D225; Mon, 09 Sep 2013 14:55:14 +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 <0MSU00FIVGG25Y00@mmp2.samsung.com>; Mon, 09 Sep 2013 14:55:14 +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 4/5] [media] ngene: Remove casting the return value which is a void pointer Date: Mon, 09 Sep 2013 14:55:14 +0900 Message-id: <006101cead21$27432180$75c96480$%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+q4x8NA391cgAAEzjg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRmVeSWpSXmKPExsVy+t8zY91DSbpBBk8aVS0uL7zEatGzYSur xcV18g7MHn1bVjF6fN4kF8AUxWWTkpqTWZZapG+XwJXRsHcue8F+toq5DeoNjNtYuxg5OCQE TCRu3xTsYuQEMsUkLtxbz9bFyMUhJLCMUeLD3s1MEAkTiVPdu5ghEtMZJT7/aWGEcH4xSqxc PAusik1ATeLLl8PsILaIgJHEjvlzwOLMAs4SLzbNZQbZJiRgK9H7KBgkzClgJ3Fw/zRGEFtY IFbi8ZknYOUsAqoSU7pmgMV5gcrXbXvFDmELSvyYfI8FYqSWxPqdx6HGy0tsXvOWGeIZdYlH f3VBTJALpm0thqgQkdj34h0jxCvr2CWmvlaD2CQg8W3yIRaITlmJTQeYIUokJQ6uuMEygVFi FpK9s5DsnYVk7ywkGxYwsqxiFE0tSC4oTkovMtIrTswtLs1L10vOz93ECIm2vh2MNw9YH2JM Blo/kVlKN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k97B2A9W03sWqwb2VN6VrLBvnOn5M+eDwc2lDWXfvx67YPVvm+LzZx2Z2dJ7lViKMxIN tZiLihMBJ+5rHCsDAAA= 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/pci/ngene/ngene-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ngene/ngene-core.c b/drivers/media/pci/ngene/ngene-core.c index 37ebc42..21d18d4 100644 --- a/drivers/media/pci/ngene/ngene-core.c +++ b/drivers/media/pci/ngene/ngene-core.c @@ -1622,7 +1622,7 @@ static void ngene_unlink(struct ngene *dev) void ngene_shutdown(struct pci_dev *pdev) { - struct ngene *dev = (struct ngene *)pci_get_drvdata(pdev); + struct ngene *dev = pci_get_drvdata(pdev); if (!dev || !shutdown_workaround) return;