Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18553058rwd; Tue, 27 Jun 2023 19:48:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Oi/NpdpDZP592zbOLT8fD2Mx3YwJjkyZ9zXRAIvfPgRVfASTU4lEJzEvKFpXOCPmje2cD X-Received: by 2002:a17:907:9484:b0:989:55f5:1fef with SMTP id dm4-20020a170907948400b0098955f51fefmr19556902ejc.75.1687920488094; Tue, 27 Jun 2023 19:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687920488; cv=none; d=google.com; s=arc-20160816; b=DQfq70OzBTnfvYNxI2QMxYXiWMNGgzDj/+6BKz1BoK28MGYoubViwvfMgDeYf7ST6+ PZezoG+op/9HkogjTpwRkLahgD+MQofEkZ1sD7zNQNRbxereeLTABYSBMvyyf1DbsgZJ hwo/ZpR3/pX2MxFs9Jd/I6eTLdtdMcrDTx2mPJlga8xvXGedXBoftxq7BhvkBvB+VdHa 2KOC3dwVu71N7fn0I17tyKPP309FuGyi6xbi3dQsCdRbhME/kd1eQrz0WCcawoT9gva4 vSuKlliEaHygcUohlbyvCwKZtMu2+r2ctMZzi4F/U2h0AriCUxnJ6dXcx7xSEARzNRRA aN8w== 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=6DM8VNPtxtyHDM0MNMk+YxYZLmPoK/76PeUWbK0wfMs=; fh=UUJk3iI8XHh9483DZOZufJLolP3kXjuNvzerpw5mCds=; b=wJ2ykap7bjTsCjQ8Z1o6Osq+skedWQQH6nX8fCzXODNS8B+WP/hqgO2ExCFvuJIf1n XHGOMkG27JnOJl2jqUvBmWcvC/IWseLyhc3YIogkoAPGmzULSHxNQJ/KpuL8SAT0TIzK HZDvxssVtyOCxikhVOnp4hE0RU3+lXjiWJbxPMDF1TDftgSXv8uHaA8if9YvVGBXXzm+ zhu5Pf8eS9mms34dV0xqli6Uy1XlsiJvUVItCL8+6Y2FoT44JJKvYYu0waTtJOA2gKo+ 04yxfRDxg0Ex1t+u2a6z+LvlDAGNhmg0ApSCspoQw3HBrbw1m0PTgCs011zfwRBY7T29 3+1Q== 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 sb23-20020a170906edd700b00982c9660263si5042986ejb.803.2023.06.27.19.47.43; Tue, 27 Jun 2023 19:48:08 -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 S231487AbjF1CqC (ORCPT + 99 others); Tue, 27 Jun 2023 22:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbjF1Cpp (ORCPT ); Tue, 27 Jun 2023 22:45:45 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 1509E30EE; Tue, 27 Jun 2023 19:45:30 -0700 (PDT) Received: from localhost.localdomain (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id AB7FC604D9369; Wed, 28 Jun 2023 10:45:27 +0800 (CST) X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: wuych To: mostrows@earthlink.net, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, xeb@mail.ru Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, wuych Subject: [PATCH net-next 09/10] net: ppp: remove unnecessary (void*) conversions Date: Wed, 28 Jun 2023 10:45:26 +0800 Message-Id: <20230628024526.1440718-1-yunchuan@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 Pointer variables of void * type do not require type cast. Signed-off-by: wuych --- drivers/net/ppp/pppoe.c | 4 ++-- drivers/net/ppp/pptp.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c index ce2cbb5903d7..eac91a5560ff 100644 --- a/drivers/net/ppp/pppoe.c +++ b/drivers/net/ppp/pppoe.c @@ -968,7 +968,7 @@ static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb) ***********************************************************************/ static int pppoe_xmit(struct ppp_channel *chan, struct sk_buff *skb) { - struct sock *sk = (struct sock *)chan->private; + struct sock *sk = chan->private; return __pppoe_xmit(sk, skb); } @@ -976,7 +976,7 @@ static int pppoe_fill_forward_path(struct net_device_path_ctx *ctx, struct net_device_path *path, const struct ppp_channel *chan) { - struct sock *sk = (struct sock *)chan->private; + struct sock *sk = chan->private; struct pppox_sock *po = pppox_sk(sk); struct net_device *dev = po->pppoe_dev; diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c index 0fe78826c8fa..7dcd5b9328e3 100644 --- a/drivers/net/ppp/pptp.c +++ b/drivers/net/ppp/pptp.c @@ -130,7 +130,7 @@ static void del_chan(struct pppox_sock *sock) static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb) { - struct sock *sk = (struct sock *) chan->private; + struct sock *sk = chan->private; struct pppox_sock *po = pppox_sk(sk); struct net *net = sock_net(sk); struct pptp_opt *opt = &po->proto.pptp; @@ -566,7 +566,7 @@ static int pptp_create(struct net *net, struct socket *sock, int kern) static int pptp_ppp_ioctl(struct ppp_channel *chan, unsigned int cmd, unsigned long arg) { - struct sock *sk = (struct sock *) chan->private; + struct sock *sk = chan->private; struct pppox_sock *po = pppox_sk(sk); struct pptp_opt *opt = &po->proto.pptp; void __user *argp = (void __user *)arg; -- 2.30.2