Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1745428rwe; Fri, 2 Sep 2022 03:10:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR4TwOQdhTdKUpBDMIUebf8FWhqzCSAPfxLNRBS1az5tnQCyhDl+/nhOvFJ6WDarQXVwNhOd X-Received: by 2002:a63:6a05:0:b0:42a:3b5d:8084 with SMTP id f5-20020a636a05000000b0042a3b5d8084mr30055527pgc.281.1662113409422; Fri, 02 Sep 2022 03:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662113409; cv=none; d=google.com; s=arc-20160816; b=ZH1NYpUSqLmEN5aeSMzYtv64cNK8sLwMHxjLdLWIdjsszbz5Xn1/g3UUZQ14R0ZKwk vRxZzAjmL5FVhi0a9Sh3sRRkUwAg7YCB5IcpZmPTRmDIh/1gA2YNDgv1YsDDRU8cssl3 0eHRym+JH9nCu7tebc7viK4WrW3qRQf6R4nrHQk0wpsyTsJ3JYAbhob7CJvKyCIS5oO6 50B0lO4eyUOvacEFbTS9GUTtIpejqfGTYa8kIeGePFzydlqzPGmq3Y3X++xiYJj7A83M EeoROyTCbl1xbyS71qNLDzA66ficU2VYrnKJ0OEQhWHb6WnktqqwQuObQfBSurcfOWkl HPGQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ey0K4wQnhegdgAeyU9dIk00TcYC9S5EHVHT72Ibu5sU=; b=nB8XXsMeU0jEFcmXPE07bOh+abQC14BWJnKxTVshQs0QANmW/ACNdFcKfafbUYwUeG mfn8B4KjGDvuvK0FlkkPJfLX2tqow+6TT1eGkPCqBAhfvS7OKYryeEToBE81s+OBo4as +7mM1W7AU913/RzTey7LM+S5kXQSiwCGDXudOnYaPaWdPi041nWq5X1xQi59v0j+FtVe qkdJ4S7r8DjcqVvjtgDtj5A9KUbAGSuJ6vbQGyvokYPnYo7RUTHkwqZS8yBsubPzh21Y 2EXGEPatMWq3mce+XTbLStXTJSVwQKccvwRztJnyUNN4AkkU7qa/jedOrAaDIfEEP5M/ PdvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oADDvJMm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a17090a6b4600b001fbc6b0fcbcsi1775149pjl.82.2022.09.02.03.09.58; Fri, 02 Sep 2022 03:10:09 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oADDvJMm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235593AbiIBJxA (ORCPT + 99 others); Fri, 2 Sep 2022 05:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235701AbiIBJwm (ORCPT ); Fri, 2 Sep 2022 05:52:42 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3660CD124C for ; Fri, 2 Sep 2022 02:52:38 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id b16so1966553edd.4 for ; Fri, 02 Sep 2022 02:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ey0K4wQnhegdgAeyU9dIk00TcYC9S5EHVHT72Ibu5sU=; b=oADDvJMm0G3cTIlJG7zJ3VyZ7WisOx61oK8b5QI5OcqUY9fdTFAky58nZ3d4UmX3x+ 42OepF39qhDu6/WTH9IdodwDYDVQvYzybbQjNP+Yyj8EY9FRm920lb7jlJDrpAc2RYiq O3zD1OH6ON1sdMnbZdzVIUZrvYjrjRcmlQIV3JqjGDiB055mNJXEZ2xRudpTCstpJfyp oHVjERJDdlTN3pdtCXepRsapJKpyC0Zs95jVuDCGJ5EgZAeJB2zaBXTex7m+LQs/CuxM OqXvC1OY3/aqNOSG9fiE0hFSZ3ACcxuP+vIasFVcCoPB3zu1UKtgYUnVG11F1GCuaawA eh2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ey0K4wQnhegdgAeyU9dIk00TcYC9S5EHVHT72Ibu5sU=; b=gb91BJ4n9YYfeguJRHqoDxD9A1wPutEeidqhE01KRYS3LVRe1pGF7YH2tG+ssjQvfj wenUpllhOmtx8M1dNmHitGEDgIPNdbgLtkf2WnWcYFxtKgPw5aPorwjzISahYxy9E5vP vuejpo7SADbH5HmbLNDwFLf6QhN0Z8Ciduq1YMKr2afP3L4SCxImVO3tdvIU2unnRXES KTftkuA3pARvqcWn4bp2rNrNlCJUTjMCAALQmsr0HMZ0ralKHlWO40vktZXdLHj3Uj6x MdPVqW7LZB0XoFx896ZRZZNE5PV88cRpWx+xglAsAk5verIWec3QtT4R+pNmI3EVe5OU qabA== X-Gm-Message-State: ACgBeo2YfNsevQ7hTlW+EzVCHZ2bWXf7lGOiWApxozHojaWEt/BRa1yX krRFGwHUL5Yt4XHGuXUND68= X-Received: by 2002:a05:6402:34c6:b0:43d:8cea:76c0 with SMTP id w6-20020a05640234c600b0043d8cea76c0mr33115562edc.268.1662112356261; Fri, 02 Sep 2022 02:52:36 -0700 (PDT) Received: from localhost.localdomain (ip-217-105-46-83.ip.prioritytelecom.net. [217.105.46.83]) by smtp.gmail.com with ESMTPSA id h6-20020a170906828600b0073d6234ceebsm959601ejx.160.2022.09.02.02.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 02:52:35 -0700 (PDT) From: Nam Cao To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, hdegoede@redhat.com Cc: namcaov@gmail.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 03/10] staging: rtl8723bs: remove rtw_change_ifname Date: Fri, 2 Sep 2022 11:51:53 +0200 Message-Id: <975cd771e5b6573b84b31690895d140cbdaeb5e2.1662111798.git.namcaov@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Delete function rtw_change_ifname because it is not used. Signed-off-by: Nam Cao --- drivers/staging/rtl8723bs/include/drv_types.h | 2 - .../staging/rtl8723bs/os_dep/osdep_service.c | 50 ------------------- 2 files changed, 52 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h index 0bbbdebdf157..bb4650f0b297 100644 --- a/drivers/staging/rtl8723bs/include/drv_types.h +++ b/drivers/staging/rtl8723bs/include/drv_types.h @@ -493,8 +493,6 @@ static inline u8 *myid(struct eeprom_priv *peepriv) #include -int rtw_change_ifname(struct adapter *padapter, const char *ifname); - extern char *rtw_initmac; extern int rtw_mc2u_disable; extern int rtw_ht_enable; diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c index 4fbfa75c05d7..f09c1324c39c 100644 --- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c +++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c @@ -108,56 +108,6 @@ void rtw_free_netdev(struct net_device *netdev) return; } -int rtw_change_ifname(struct adapter *padapter, const char *ifname) -{ - struct net_device *pnetdev; - struct net_device *cur_pnetdev; - struct rereg_nd_name_data *rereg_priv; - int ret; - - if (!padapter) - goto error; - - cur_pnetdev = padapter->pnetdev; - rereg_priv = &padapter->rereg_nd_name_priv; - - /* free the old_pnetdev */ - if (rereg_priv->old_pnetdev) { - free_netdev(rereg_priv->old_pnetdev); - rereg_priv->old_pnetdev = NULL; - } - - if (!rtnl_is_locked()) - unregister_netdev(cur_pnetdev); - else - unregister_netdevice(cur_pnetdev); - - rereg_priv->old_pnetdev = cur_pnetdev; - - pnetdev = rtw_init_netdev(padapter); - if (!pnetdev) - goto error; - - SET_NETDEV_DEV(pnetdev, dvobj_to_dev(adapter_to_dvobj(padapter))); - - rtw_init_netdev_name(pnetdev, ifname); - - eth_hw_addr_set(pnetdev, padapter->eeprompriv.mac_addr); - - if (!rtnl_is_locked()) - ret = register_netdev(pnetdev); - else - ret = register_netdevice(pnetdev); - - if (ret != 0) - goto error; - - return 0; - -error: - return -1; -} - void rtw_buf_free(u8 **buf, u32 *buf_len) { if (!buf || !buf_len) -- 2.25.1