Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6634545rwr; Tue, 9 May 2023 19:04:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53WOvag1jveLP2hd7DlWK1n+zMPcGUyPqND2K0ztb6kAz9dNK80TZnqNPaq2e50xfKxiNN X-Received: by 2002:a05:6a20:3945:b0:100:5851:d4c3 with SMTP id r5-20020a056a20394500b001005851d4c3mr13050009pzg.33.1683684251687; Tue, 09 May 2023 19:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683684251; cv=none; d=google.com; s=arc-20160816; b=dK6o6AaKWXkKHfRdxDAVTJJ49oFRZhAdkBNCCuYlNPxmrH7dDG4gtVwZbSNzS71dCZ 3tcSAtqat//iCZfJ+rOcDvFU6QL6mVALVWC1R3iueL70dNitIEACrJx57dvOpRa6bMw4 Tc8ivpqVgpMRqT2mU0+wothnXrpHPULit9hRNelDbc5myyuKU4rNswpCXdpLYDi3xklb 7ECOVZ0M14k/UFAUCQKhsiSwH1mw+vZlhp7+E0vOvesTjtX1VztbUr/2BKUTnzbv26hy IG1ewSI9GuMBpCfj7RiqtPfPQVOXqCa2zdveqS3KxGWl+V39YpPMOQziouN1p85YvqK7 c34Q== 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=6K2p76weD7l3rnm2n2isiA3+w57HCvnwW4sCqo80Ve4=; b=nRl9ifyZXkV+iurf/YKlM/K8PkOdZZDr+ierKjAn5I3xOkTRtK3IWTCX1517jiuqqg 6YxB0JJgeIjKs1Xu0dt1KMNc0CtpzptHaae0pnxRiTuAvD7DvRzuMQrVOjeSRagfYGJw tQ8ZRppBZU3NEPqgdrrLNjMLL8S5utz+i+gJ/lOFm3XWILZHgzWrCFNL8fEWVpkZP8R4 h4ZV46VGQfqGzsI3odi8GAl3DgAEQOCFzI5GXezEkocjuVkTG6CJjuUjLgmb3SSYFWH8 egoC+RimaTVE7yKq28LO3kLrUfc3RrAAz5ZZO4AyQzMqhmvsgv6DXsA7vH0V0rlSueD+ HSXw== 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 g6-20020a63b146000000b005303db0ebedsi2569927pgp.70.2023.05.09.19.03.56; Tue, 09 May 2023 19:04:11 -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 S235203AbjEJB36 (ORCPT + 99 others); Tue, 9 May 2023 21:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbjEJB35 (ORCPT ); Tue, 9 May 2023 21:29:57 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 04ED03AAF; Tue, 9 May 2023 18:29:52 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 7BE33180081FD7; Wed, 10 May 2023 09:29:49 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: Patrice Chotard , Mauro Carvalho Chehab , Jean-Christophe Trotin Cc: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Su Hui Subject: [PATCH] media: platform: Remove unnecessary (void*) conversions Date: Wed, 10 May 2023 09:29:44 +0800 Message-Id: <20230510012944.42240-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 stdemux *),(struct hva_h264_ctx *) or (struct hva_h264_task *). Signed-off-by: Su Hui --- drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c | 4 ++-- drivers/media/platform/st/sti/hva/hva-h264.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c index 45ade7210d26..120830973d22 100644 --- a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c +++ b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c @@ -135,7 +135,7 @@ static void channel_swdemux_tsklet(struct tasklet_struct *t) static int c8sectpfe_start_feed(struct dvb_demux_feed *dvbdmxfeed) { struct dvb_demux *demux = dvbdmxfeed->demux; - struct stdemux *stdemux = (struct stdemux *)demux->priv; + struct stdemux *stdemux = demux->priv; struct c8sectpfei *fei = stdemux->c8sectpfei; struct channel_info *channel; u32 tmp; @@ -256,7 +256,7 @@ static int c8sectpfe_stop_feed(struct dvb_demux_feed *dvbdmxfeed) { struct dvb_demux *demux = dvbdmxfeed->demux; - struct stdemux *stdemux = (struct stdemux *)demux->priv; + struct stdemux *stdemux = demux->priv; struct c8sectpfei *fei = stdemux->c8sectpfei; struct channel_info *channel; int idlereq; diff --git a/drivers/media/platform/st/sti/hva/hva-h264.c b/drivers/media/platform/st/sti/hva/hva-h264.c index 98cb00d2d868..196e631fa4b8 100644 --- a/drivers/media/platform/st/sti/hva/hva-h264.c +++ b/drivers/media/platform/st/sti/hva/hva-h264.c @@ -591,7 +591,7 @@ static int hva_h264_prepare_task(struct hva_ctx *pctx, { struct hva_dev *hva = ctx_to_hdev(pctx); struct device *dev = ctx_to_dev(pctx); - struct hva_h264_ctx *ctx = (struct hva_h264_ctx *)pctx->priv; + struct hva_h264_ctx *ctx = pctx->priv; struct hva_buffer *seq_info = ctx->seq_info; struct hva_buffer *fwd_ref_frame = ctx->ref_frame; struct hva_buffer *loc_rec_frame = ctx->rec_frame; @@ -984,7 +984,7 @@ static int hva_h264_open(struct hva_ctx *pctx) static int hva_h264_close(struct hva_ctx *pctx) { - struct hva_h264_ctx *ctx = (struct hva_h264_ctx *)pctx->priv; + struct hva_h264_ctx *ctx = pctx->priv; struct device *dev = ctx_to_dev(pctx); if (ctx->seq_info) @@ -1007,8 +1007,8 @@ static int hva_h264_close(struct hva_ctx *pctx) static int hva_h264_encode(struct hva_ctx *pctx, struct hva_frame *frame, struct hva_stream *stream) { - struct hva_h264_ctx *ctx = (struct hva_h264_ctx *)pctx->priv; - struct hva_h264_task *task = (struct hva_h264_task *)ctx->task->vaddr; + struct hva_h264_ctx *ctx = pctx->priv; + struct hva_h264_task *task = ctx->task->vaddr; u32 stuffing_bytes = 0; int ret = 0; -- 2.30.2