From patchwork Thu May 18 09:17:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atin Bainada X-Patchwork-Id: 13246320 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F416FC7EE23 for ; Thu, 18 May 2023 09:18:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbjERJSR (ORCPT ); Thu, 18 May 2023 05:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbjERJSR (ORCPT ); Thu, 18 May 2023 05:18:17 -0400 Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AE421FEB; Thu, 18 May 2023 02:17:58 -0700 (PDT) Date: Thu, 18 May 2023 09:17:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atinb.me; s=protonmail; t=1684401473; x=1684660673; bh=YWVeRBOpdAvOw0Rrw80vuaESvT2YD9shQDDbBZIXc50=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=t7esdlbVj3JHuVNwJjDNaU3HW1NjX7O1DcQ68u0MCZEc7BfVDZMqmNbPcqhNSR1La FDxHiQxNsm6svpv02TQ8oFYiWZQOvnUbQwXsT0yCenOI9Rwb6+7+JwlshSc5Sl2eAB 4lyD9ECmAag8ZbtYr4IfKG4roN1noILYT2VShw5QewYHxqmQLBooBqqoY3tuu35VIx ePaQt+g9lLAUCk46t2ut7vGrPElG7iNBG2pjgiOj37l3hAsfEYYPgbsegbB9l79Rck lugJ9aI+jn5MY5b5z3x9d7VChuj4hqWt5wuSDZyPVv+VfwoTrNCg7C8ryP3rIlNPwF AH63y8O97+FWw== To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl From: Atin Bainada Cc: linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Atin Bainada Subject: [PATCH] media: av7110: Remove unnecessary (void*) conversions Message-ID: <20230518091729.2431-1-hi@atinb.me> Feedback-ID: 64551405:user:proton MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org No need cast (void*) to (struct dvb_demux_feed *) or (struct av7110 *). Signed-off-by: Atin Bainada --- drivers/staging/media/av7110/av7110_av.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/av7110/av7110_av.c b/drivers/staging/media/av7110/av7110_av.c index a5c5bebad306..00dd6a7fea64 100644 --- a/drivers/staging/media/av7110/av7110_av.c +++ b/drivers/staging/media/av7110/av7110_av.c @@ -78,7 +78,7 @@ static int write_ts_to_decoder(struct av7110 *av7110, int type, const u8 *buf, s int av7110_record_cb(struct dvb_filter_pes2ts *p2t, u8 *buf, size_t len) { - struct dvb_demux_feed *dvbdmxfeed = (struct dvb_demux_feed *) p2t->priv; + struct dvb_demux_feed *dvbdmxfeed = p2t->priv; if (!(dvbdmxfeed->ts_type & TS_PACKET)) return 0; @@ -837,7 +837,7 @@ static int write_ts_to_decoder(struct av7110 *av7110, int type, const u8 *buf, s int av7110_write_to_decoder(struct dvb_demux_feed *feed, const u8 *buf, size_t len) { struct dvb_demux *demux = feed->demux; - struct av7110 *av7110 = (struct av7110 *) demux->priv; + struct av7110 *av7110 = demux->priv; dprintk(2, "av7110:%p, \n", av7110);