Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9631493rwr; Thu, 11 May 2023 18:53:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wvTAlPWz075VNzg2uinXj3Wt+ywBtGf9L+/rR6SBwTfEjOsCWSXGx98ngSUm2kG/rGsvX X-Received: by 2002:a17:90b:4f89:b0:24d:f816:7952 with SMTP id qe9-20020a17090b4f8900b0024df8167952mr22478190pjb.5.1683856414023; Thu, 11 May 2023 18:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683856414; cv=none; d=google.com; s=arc-20160816; b=VX98Na20FAfybSiyurvFxYoB8rogPWRfbwWDcLsAjvyrViYfbwgU2ig0B2OPIXnwmI aZqYLbCLMDgnFQEA1JPzUfG9OxVnrQ1aC3yavFYQYI8DiL76z6cDSdYLSR9EPfPUGPDv 4k33lZAZ7TzdOytDSvXQGgHa7/Nb0obJk+/UBmYbrFjQVNf470p+5jEun7WZPniV9jBT IZ3SDC1WLj7RE7wI5rn8oKiQPFsM/2wjylhd2vGOm9VGmgM0g4JczqFq+eyJdBd+pTkA Q01Z5y84j9JxLmVYWu8t3PhjHzJ0cu6CeyfeaIyWAaaHKge2rlQvLbY0zTRDyOZWrsmp dGTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fpNkgiP0zycrPLyOxQZcMomieqMppPYnmHQ/cwDF4kw=; b=Adyvdkvv9ANmbJvRCf7U3f26DcJVZBi0JJblEDyoSwgo7ZUZP4B0JGEdLr9BBAwqx3 bTD7y+YsqW7ZnlXwK8C/Fhaa3+Gv+HRtbOQIbOyI4zZyZQ2LxMe1dxSymQsMNr5WY5xY 8wRURLQcv9sOAFY4L+IM2lEGbK6VnwPRtbfGsHm9xdUpDiwmJrcJJPzzmhtTIpHUtiuD lDPkGjVc8m3jmwOnwqCgxrBiwmrPrORpdh6Lq02Psom2XtQWU7yVRG6EpWLz/NySXY6g E+xaNbFmyizNEMyLditC8KOCYZIDQlzuSirmftHRdbGyNbExJXxN0j6HYj7PKfJuA+39 VtaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l24-20020a639858000000b00513a662096fsi8197029pgo.775.2023.05.11.18.53.21; Thu, 11 May 2023 18:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239769AbjELBm0 (ORCPT + 99 others); Thu, 11 May 2023 21:42:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbjELBmZ (ORCPT ); Thu, 11 May 2023 21:42:25 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id EED0C3C02; Thu, 11 May 2023 18:42:23 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 7DEA9180022049; Fri, 12 May 2023 09:42:01 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: Mauro Carvalho Chehab , Andy Walls , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Su Hui Subject: [PATCH] media: pci: remove unnecessary (void*) conversions Date: Fri, 12 May 2023 09:41:59 +0800 Message-Id: <20230512014159.30770-1-suhui@nfschina.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need cast (void*) to (struct dst_state *), (struct cx18_stream *), (struct saa7164_port *) or (struct budget *). Signed-off-by: Su Hui --- drivers/media/pci/bt8xx/dst_ca.c | 2 +- drivers/media/pci/cx18/cx18-dvb.c | 4 ++-- drivers/media/pci/saa7164/saa7164-dvb.c | 4 ++-- drivers/media/pci/ttpci/budget-core.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/media/pci/bt8xx/dst_ca.c b/drivers/media/pci/bt8xx/dst_ca.c index 85fcdc59f0d1..d234a0f404d6 100644 --- a/drivers/media/pci/bt8xx/dst_ca.c +++ b/drivers/media/pci/bt8xx/dst_ca.c @@ -534,7 +534,7 @@ static long dst_ca_ioctl(struct file *file, unsigned int cmd, unsigned long ioct mutex_lock(&dst_ca_mutex); dvbdev = file->private_data; - state = (struct dst_state *)dvbdev->priv; + state = dvbdev->priv; p_ca_message = kmalloc(sizeof (struct ca_msg), GFP_KERNEL); p_ca_slot_info = kmalloc(sizeof (struct ca_slot_info), GFP_KERNEL); p_ca_caps = kmalloc(sizeof (struct ca_caps), GFP_KERNEL); diff --git a/drivers/media/pci/cx18/cx18-dvb.c b/drivers/media/pci/cx18/cx18-dvb.c index 33e5a5b5fab4..cf82360a503d 100644 --- a/drivers/media/pci/cx18/cx18-dvb.c +++ b/drivers/media/pci/cx18/cx18-dvb.c @@ -234,7 +234,7 @@ static int dvb_register(struct cx18_stream *stream); static int cx18_dvb_start_feed(struct dvb_demux_feed *feed) { struct dvb_demux *demux = feed->demux; - struct cx18_stream *stream = (struct cx18_stream *) demux->priv; + struct cx18_stream *stream = demux->priv; struct cx18 *cx; int ret; u32 v; @@ -305,7 +305,7 @@ static int cx18_dvb_start_feed(struct dvb_demux_feed *feed) static int cx18_dvb_stop_feed(struct dvb_demux_feed *feed) { struct dvb_demux *demux = feed->demux; - struct cx18_stream *stream = (struct cx18_stream *)demux->priv; + struct cx18_stream *stream = demux->priv; struct cx18 *cx; int ret = -EINVAL; diff --git a/drivers/media/pci/saa7164/saa7164-dvb.c b/drivers/media/pci/saa7164/saa7164-dvb.c index 24421c116b0b..3eb749db1ca7 100644 --- a/drivers/media/pci/saa7164/saa7164-dvb.c +++ b/drivers/media/pci/saa7164/saa7164-dvb.c @@ -280,7 +280,7 @@ static int saa7164_dvb_start_port(struct saa7164_port *port) static int saa7164_dvb_start_feed(struct dvb_demux_feed *feed) { struct dvb_demux *demux = feed->demux; - struct saa7164_port *port = (struct saa7164_port *) demux->priv; + struct saa7164_port *port = demux->priv; struct saa7164_dvb *dvb = &port->dvb; struct saa7164_dev *dev = port->dev; int ret = 0; @@ -307,7 +307,7 @@ static int saa7164_dvb_start_feed(struct dvb_demux_feed *feed) static int saa7164_dvb_stop_feed(struct dvb_demux_feed *feed) { struct dvb_demux *demux = feed->demux; - struct saa7164_port *port = (struct saa7164_port *) demux->priv; + struct saa7164_port *port = demux->priv; struct saa7164_dvb *dvb = &port->dvb; struct saa7164_dev *dev = port->dev; int ret = 0; diff --git a/drivers/media/pci/ttpci/budget-core.c b/drivers/media/pci/ttpci/budget-core.c index 5d5796f24469..710595987522 100644 --- a/drivers/media/pci/ttpci/budget-core.c +++ b/drivers/media/pci/ttpci/budget-core.c @@ -308,7 +308,7 @@ int ttpci_budget_debiwrite(struct budget *budget, u32 config, int addr, static int budget_start_feed(struct dvb_demux_feed *feed) { struct dvb_demux *demux = feed->demux; - struct budget *budget = (struct budget *) demux->priv; + struct budget *budget = demux->priv; int status = 0; dprintk(2, "budget: %p\n", budget); @@ -327,7 +327,7 @@ static int budget_start_feed(struct dvb_demux_feed *feed) static int budget_stop_feed(struct dvb_demux_feed *feed) { struct dvb_demux *demux = feed->demux; - struct budget *budget = (struct budget *) demux->priv; + struct budget *budget = demux->priv; int status = 0; dprintk(2, "budget: %p\n", budget); -- 2.30.2