Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp518235rwi; Wed, 26 Oct 2022 04:05:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zfxN26BtA2OQJG2bKObmqVRE/LytvgMLnQdPVtjlRWvQtTmM2zv1OnSqcdyNQOmHHY5YT X-Received: by 2002:a17:907:2708:b0:7a6:38d7:5987 with SMTP id w8-20020a170907270800b007a638d75987mr14991977ejk.467.1666782310814; Wed, 26 Oct 2022 04:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666782310; cv=none; d=google.com; s=arc-20160816; b=lK69AAS0By/G5MSx0ILcFYPb0FqfL+i+zTxdzzm/JqcOU1r3WhWrPMAZo8unp1nqb1 oBNKAGZ6WiglwPoOP2R2XcuRdEXSfEXGGIjuFqHOHEtjNu3vDJsdVv7UQH8GflYaCPRf 9fZrVEZy6SHz+b1EIcU8oJdzrmG3tg4d4TplSnnla303t0W5H338EF3pdsrO/gRqEGrP 7OeVEudSKgUfeaRRfDGzWYfGLjY5AdNfaFMh1aX/YIMJ5D/HPHolN4j5y/eoVnRFENRO xhAYqnjfXhSHflTjcILkCwsZJ8ooQer/Ublx0GbF8bWPrtiZvOhg/RgnJTXlSFQrNmLk rLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BXohJX1erbeziAWam6USVI8UZ2May+Pcv8wdIAfUb+c=; b=kY5EMvQ2a8HAttau9abWuC2EJRBivPKJCIHqoh0Yt669FPoRBexjZNz1hVMov8hBJA r5rXGyOOeNMg7dl+/fdz2l1FjM3/afZYJpLUD8CSBckJy8SPHbLSOCPjvjor7G0DWl3F 6Newx0j/iMim5A20u+BMx1v7+lMlsMygoRQUlbrgwG8+qXyrhWn/8NLT05SF1OiYS8PC M5MdOloXqvSLaUCi8EXuykQ6gmo+5GuFUTeckteE7Lb4M8/C9gt0X7neEPhTItv/ieG8 jrbwuoZY4ejaGcE4hzoOh9CcQ/nURXrJmyjkU9WhAUyeW/lFdhLURlArbnw7pA6eJ0SV XZJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yJGawvpN; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr21-20020a170907721500b0078db794016csi5663006ejc.907.2022.10.26.04.04.45; Wed, 26 Oct 2022 04:05:10 -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=@linuxfoundation.org header.s=korg header.b=yJGawvpN; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233446AbiJZKow (ORCPT + 99 others); Wed, 26 Oct 2022 06:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbiJZKos (ORCPT ); Wed, 26 Oct 2022 06:44:48 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 662E137408 for ; Wed, 26 Oct 2022 03:44:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id D9015CE21B2 for ; Wed, 26 Oct 2022 10:44:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 028F2C433D7; Wed, 26 Oct 2022 10:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666781079; bh=mv+nT/fYds+81lQzwzMKAsyolciIF3Ndr3XzU773gZc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yJGawvpN+O+Hb8WEAFiiNKOwz0dKk8onsE+jbC9O4hgEmAOfyMagD/N2TJj4LNsMN AwBdYJuWj3g4nQ/23nC6TXtQKjl5oH2N+cjhs5589RpvL1Hm6d4+zQcTknVIesFadr L44u3HzLjJ3GcgkE0ietNDGedvb9VsV98rAttjxM= Date: Wed, 26 Oct 2022 12:44:36 +0200 From: Greg Kroah-Hartman To: Deepak R Varma Cc: outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] staging: rtl8192u: remove unnecessary function implementation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 On Wed, Oct 26, 2022 at 08:57:48AM +0530, Deepak R Varma wrote: > Current implementation of function ieee80211_tkip_null simply returns > back to the caller without any useful instruction executions. This makes > the function call and its implementation unnecessary and should be > removed. > > Signed-off-by: Deepak R Varma > --- > drivers/staging/rtl8192u/ieee80211/ieee80211.h | 3 --- > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 6 ------ > drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 3 --- > 3 files changed, 12 deletions(-) > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h > index 9cd4b1896745..00c07455cbb3 100644 > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h > @@ -232,8 +232,6 @@ struct cb_desc { > > #define ieee80211_ccmp_null ieee80211_ccmp_null_rsl > > -#define ieee80211_tkip_null ieee80211_tkip_null_rsl > - > #define free_ieee80211 free_ieee80211_rsl > #define alloc_ieee80211 alloc_ieee80211_rsl > > @@ -2256,7 +2254,6 @@ void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success); > void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee); > > /* ieee80211_crypt_ccmp&tkip&wep.c */ > -void ieee80211_tkip_null(void); > > int ieee80211_crypto_init(void); > void ieee80211_crypto_deinit(void); > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > index 7b120b8cb982..9bfd24ad46b6 100644 > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c > @@ -716,9 +716,3 @@ void ieee80211_crypto_tkip_exit(void) > { > ieee80211_unregister_crypto_ops(&ieee80211_crypt_tkip); > } > - > -void ieee80211_tkip_null(void) > -{ > -// printk("============>%s()\n", __func__); > - return; > -} > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > index b94fe9b449b6..3f93939bc4ee 100644 > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c > @@ -159,9 +159,6 @@ struct net_device *alloc_ieee80211(int sizeof_priv) > ieee->last_packet_time[i] = 0; > } > > -/* These function were added to load crypte module autoly */ > - ieee80211_tkip_null(); > - Ah, but this was created on purpose, did you now break the module autoloading here? Is this built as a separate module or is it all one big module? You need to explain why this does not change functionality in your changelog text. thanks, greg k-h