Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1680995rwr; Fri, 5 May 2023 19:20:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/xtCwq9TGDkSV2ms0isFKy6xr5BSk0sjmtWTn3TUq7IfSDgfUl49yjGy9bnWUITAr+dVp X-Received: by 2002:a05:6a00:22c4:b0:641:4e80:a7c0 with SMTP id f4-20020a056a0022c400b006414e80a7c0mr5428773pfj.22.1683339658436; Fri, 05 May 2023 19:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683339658; cv=none; d=google.com; s=arc-20160816; b=s9TdCzD+p/01SvNRcZJzESLt5kqSmzYwRGkQ7Qtj6pXJLW3V2Vcc3ScXItBmbcUYfU jyQF6YzoXEKiVcxrCBTCrD37mq05FlOii7HoFp22OC4wo/HxT7KtN3ZLKu4oB+K1x2ap 4xy8OyW2AvM6BQPqw2t+H3BjDluc4LFTUE9OizVBzPeVYUF8tlONRuw8BAk8jMaIBcne aRhLWNEBle9ID72LzpPlOp2yN4oYeRqyZkogNHNWHoQs6KfJkeMhDPJgu3hAQVG7aAFK jIw3uzFq7emQrD6V26TLfSf6CRNkdM9R2/2hZXGPIpquQHDsQTaMBWt55sjV825lbkux ePkg== 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=M99yjAoIgAFggBSpDqWmzP6o9i20J9P0Ru50VOD0nZM=; b=jpBcKOWtrrquCJ9fX8kUkbJ9J6lsMXfNO65dn5prJsbAcmlSQb2YE486gmTdD9x/AN ummyPUgl/0+07rzIId6IecwmXPWTZEe3Qr90Oezx08c3YK06WE0Kw/s4dLzOmnnC+aH3 qF273+s7BuwT8yevihMRwIkLCl9TKBjuBehE/7PY8tbpjE/0IxhunTYI01+F5LZmBHNr 91aU6EnC+OVGim9FnrZ2TfMk9y+/dKnObxbB7/gJDccI341k86RPnnDU3NZIJInoQ0rC WZymvWK5lssri941I+01Ryr0NrHbHuV0pOhYPs+5LtQYzRF4EdYvQqZuXcjGPoWwJV8M cPSw== 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 m125-20020a625883000000b006439d46853dsi3283246pfb.364.2023.05.05.19.20.42; Fri, 05 May 2023 19:20:58 -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 S232753AbjEFBpR (ORCPT + 99 others); Fri, 5 May 2023 21:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbjEFBpN (ORCPT ); Fri, 5 May 2023 21:45:13 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id CA0C249D4; Fri, 5 May 2023 18:45:11 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id E76F8180104BD0; Sat, 6 May 2023 09:44:55 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Su Hui To: Mauro Carvalho Chehab Cc: Baisong Zhong , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Su Hui Subject: [PATCH] media: dvb-usb: remove unnecessary (void*) conversions Date: Sat, 6 May 2023 09:44:47 +0800 Message-Id: <20230506014447.32746-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 az6027_device_state *) or (struct dw2102_state *). Signed-off-by: Su Hui --- drivers/media/usb/dvb-usb/az6027.c | 16 ++++++++-------- drivers/media/usb/dvb-usb/dw2102.c | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/media/usb/dvb-usb/az6027.c b/drivers/media/usb/dvb-usb/az6027.c index 7d78ee09be5e..f7a6ab29e530 100644 --- a/drivers/media/usb/dvb-usb/az6027.c +++ b/drivers/media/usb/dvb-usb/az6027.c @@ -408,7 +408,7 @@ static int az6027_ci_read_attribute_mem(struct dvb_ca_en50221 *ca, int address) { struct dvb_usb_device *d = (struct dvb_usb_device *)ca->data; - struct az6027_device_state *state = (struct az6027_device_state *)d->priv; + struct az6027_device_state *state = d->priv; int ret; u8 req; @@ -481,7 +481,7 @@ static int az6027_ci_read_cam_control(struct dvb_ca_en50221 *ca, u8 address) { struct dvb_usb_device *d = (struct dvb_usb_device *)ca->data; - struct az6027_device_state *state = (struct az6027_device_state *)d->priv; + struct az6027_device_state *state = d->priv; int ret; u8 req; @@ -527,7 +527,7 @@ static int az6027_ci_write_cam_control(struct dvb_ca_en50221 *ca, u8 value) { struct dvb_usb_device *d = (struct dvb_usb_device *)ca->data; - struct az6027_device_state *state = (struct az6027_device_state *)d->priv; + struct az6027_device_state *state = d->priv; int ret; u8 req; @@ -589,7 +589,7 @@ static int CI_CamReady(struct dvb_ca_en50221 *ca, int slot) static int az6027_ci_slot_reset(struct dvb_ca_en50221 *ca, int slot) { struct dvb_usb_device *d = (struct dvb_usb_device *)ca->data; - struct az6027_device_state *state = (struct az6027_device_state *)d->priv; + struct az6027_device_state *state = d->priv; int ret, i; u8 req; @@ -645,7 +645,7 @@ static int az6027_ci_slot_shutdown(struct dvb_ca_en50221 *ca, int slot) static int az6027_ci_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot) { struct dvb_usb_device *d = (struct dvb_usb_device *)ca->data; - struct az6027_device_state *state = (struct az6027_device_state *)d->priv; + struct az6027_device_state *state = d->priv; int ret; u8 req; @@ -674,7 +674,7 @@ static int az6027_ci_slot_ts_enable(struct dvb_ca_en50221 *ca, int slot) static int az6027_ci_poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open) { struct dvb_usb_device *d = (struct dvb_usb_device *)ca->data; - struct az6027_device_state *state = (struct az6027_device_state *)d->priv; + struct az6027_device_state *state = d->priv; int ret; u8 req; u16 value; @@ -719,7 +719,7 @@ static void az6027_ci_uninit(struct dvb_usb_device *d) if (NULL == d) return; - state = (struct az6027_device_state *)d->priv; + state = d->priv; if (NULL == state) return; @@ -735,7 +735,7 @@ static void az6027_ci_uninit(struct dvb_usb_device *d) static int az6027_ci_init(struct dvb_usb_adapter *a) { struct dvb_usb_device *d = a->dev; - struct az6027_device_state *state = (struct az6027_device_state *)d->priv; + struct az6027_device_state *state = d->priv; int ret; deb_info("%s", __func__); diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c index 0ca764282c76..d34d53c651c2 100644 --- a/drivers/media/usb/dvb-usb/dw2102.c +++ b/drivers/media/usb/dvb-usb/dw2102.c @@ -903,7 +903,7 @@ static int su3000_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) static int su3000_power_ctrl(struct dvb_usb_device *d, int i) { - struct dw2102_state *state = (struct dw2102_state *)d->priv; + struct dw2102_state *state = d->priv; int ret = 0; info("%s: %d, initialized %d", __func__, i, state->initialized); @@ -2576,7 +2576,7 @@ static int dw2102_probe(struct usb_interface *intf, static void dw2102_disconnect(struct usb_interface *intf) { struct dvb_usb_device *d = usb_get_intfdata(intf); - struct dw2102_state *st = (struct dw2102_state *)d->priv; + struct dw2102_state *st = d->priv; struct i2c_client *client; /* remove I2C client for tuner */ -- 2.30.2