Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5100704rwr; Sun, 23 Apr 2023 21:27:46 -0700 (PDT) X-Google-Smtp-Source: AKy350an/h3+EBKoA6RcUE2MlntcW2FHTnIxfpId3twtALELL/kKAYvZzkzVX/mKQVu33x0IBUge X-Received: by 2002:a05:6a20:e606:b0:ee:a89f:5b55 with SMTP id my6-20020a056a20e60600b000eea89f5b55mr14610819pzb.34.1682310466372; Sun, 23 Apr 2023 21:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682310466; cv=none; d=google.com; s=arc-20160816; b=GCiE5bQKyPgdomCD6RxFtas8SR1khwBoy5QvtWRQwHVmmNBNQJSw4ksgrHNXP+T2lK mtkntb0UquUMrd2TjFpBJMzD/mjs1YuktkY0raHvSHtUOCEgPhpOzpQ9mouDHiEUOvdX s9bP5EgDUGQqlHEo0GY+5r+3w8FikkYHPBvbPc2ymJqydNqTVo/cN59O5V/h+u+8dhHQ OIR813/8LrAgHmNTYmEBOSfbAkCXnWfmFJ6aMHQDA4XMWM4Yw5rl3WmsbKiByZaOtgO7 tKlrtV2NY1ufbBsuhIYdEGqJRfKfQiz7n4lQ5gR1XKh6yjvXiUqDfYptqxmy7MrMID/Q H9/A== 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=v+rYfHIbEjfSnp6ZZ8wCL/xzmOhhC1GHsRQR12LCN2A=; b=fwO4QUefznkFYNHGMNIZ1iPCZ1xI4y7acIZdCm3yfLDumAsXeSA0AKHWYiU9Z32Ubi sW2mN6FZNCWAUQZz82p+G4Ow/JTJaduPmjLkNai0KFa6+hL+AgxraknSIBj77T4XBbvp 6bRlwROevJKDx6C/ViBcfjH0idZ5jYGgp+uV9n+dHnS8j1XI8zZcO9uYX7ah5WYk6/Ys Z5IcRbzhaPhwhKR/Sphr6EF88oJT9PcYmFxCruTwVtqYdfUCLRcLFKEe6NhDdv8wLTye Qtiv9CsRdWPPRM+9uqmQFr3anRfkFHNPYIGQavoUCkpDstXSGGUfk+B+g3Kn4Ay1O62z o4tg== 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 g16-20020a625210000000b0063b72bd28absi10696568pfb.135.2023.04.23.21.27.32; Sun, 23 Apr 2023 21:27:46 -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 S230319AbjDXEUn (ORCPT + 99 others); Mon, 24 Apr 2023 00:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjDXEUm (ORCPT ); Mon, 24 Apr 2023 00:20:42 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 06BCC1726; Sun, 23 Apr 2023 21:20:39 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 620EC180120C7B; Mon, 24 Apr 2023 12:20:30 +0800 (CST) X-MD-Sfrom: suhui@nfschina.com X-MD-SrcIP: 180.167.10.98 From: Suhui To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Suhui Subject: [PATCH] usb: typec: tcpm: remove unnecessary (void*) conversions Date: Mon, 24 Apr 2023 12:19:40 +0800 Message-Id: <20230424041940.132866-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 fusb302_chip *) or (struct tcpm_port *). Signed-off-by: Suhui --- drivers/usb/typec/tcpm/fusb302.c | 2 +- drivers/usb/typec/tcpm/tcpm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index 1ffce00d94b4..4b7b8f6af3ca 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -190,7 +190,7 @@ static void fusb302_log(struct fusb302_chip *chip, const char *fmt, ...) static int fusb302_debug_show(struct seq_file *s, void *v) { - struct fusb302_chip *chip = (struct fusb302_chip *)s->private; + struct fusb302_chip *chip = s->private; int tail; mutex_lock(&chip->logbuffer_lock); diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c index 1ee774c263f0..ab3a54662ed9 100644 --- a/drivers/usb/typec/tcpm/tcpm.c +++ b/drivers/usb/typec/tcpm/tcpm.c @@ -737,7 +737,7 @@ static void tcpm_log_source_caps(struct tcpm_port *port) static int tcpm_debug_show(struct seq_file *s, void *v) { - struct tcpm_port *port = (struct tcpm_port *)s->private; + struct tcpm_port *port = s->private; int tail; mutex_lock(&port->logbuffer_lock); -- 2.30.2