Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2947080pxb; Tue, 13 Apr 2021 14:26:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb51muQUKx15MCa5xZf6LPVaDWVJ3KSCJeigoLT3Bc0NgCvbxaLEBfej1dNcMdzgwIa+/c X-Received: by 2002:a17:907:10d8:: with SMTP id rv24mr11410485ejb.542.1618349170442; Tue, 13 Apr 2021 14:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618349170; cv=none; d=google.com; s=arc-20160816; b=pV57lyET8jl/c6vZZ0wJWwuDV54h6w/68SLMV+5WWYRZzvruwCMrTjiSoi/fIiu96b 9BBvdIsKePcSGwURYov5bHRqIzob9uFWCXxD2kBCrglKYDz/E0yjDfNX9ab2qJx/hHGW b8y5xJlE0zNOlj53kjdZnA+eGJ4E53Z77rpxsCCxLncvu5A87AHD4E2M9cIffW/udyDn 8AfapSKv5zTGBDjTRn3vD6KbAzKO1b+Le9dbodZ+NKlTZDcJA76x/QfXaCLHJ9WXkvX9 WlThUKI+91RRtDLv5b4VkZD2wRgu/xEWBwl1581TgAVwKxYSb0NPTihxtX6MQzsn/CCr 6K8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:ironport-hdrordr; bh=G/pF28uioResnBizgCKJeh52s5VHorPwo1ksWg+Gw9w=; b=q5V8eaiTqYDqKq44qG9KBpLfoeKmxxYa0MwjWiu9+1/K4azvHgbX1nVl2N4e1UJ822 sotFhATj1xih3zLhlapGw9QfOB3J5u18Ega47mIrUZ/KyYywTBcbtsqS8hksk4lNSWC2 hPthZyqXTIHzfm9n6Jiq0cJPvJQNJuIaj1as0Z6HszC2/QX/ASSQdFoKdDZh1LfkPkF5 9BKzGpHO9LZ+MeO+CSoCoSCnbHdQFX3dUa3ikJaSy4g2WUN0m0yxX9dupvhYWOuexPdS e3rVWTFo9G8LkcOLMF9ToKhH1AEbrQxs0FgkqWDvyf96DiWKXt77hlexvYmzP5b+ml7v gxYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n24si11012709eds.571.2021.04.13.14.25.47; Tue, 13 Apr 2021 14:26:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346774AbhDMQEk (ORCPT + 99 others); Tue, 13 Apr 2021 12:04:40 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:12186 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346716AbhDMQEj (ORCPT ); Tue, 13 Apr 2021 12:04:39 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AwaOQla4JKQtXTaoqJQPXwB3XdLJzesId70hD?= =?us-ascii?q?6mlaTxtJfsuE0/2/hfhz73DJoRsYRX1Io769EYaaR3e0z/5IyK0cJ62rUgWjmE?= =?us-ascii?q?bAFutfxK/jxzGlJCHk7O5a0s5bH5RWM9H7AVhkgcuS2mDReOoI+sWN86yjmI7l?= =?us-ascii?q?vhRQZDxtApsA0y5JTiKSEkh7X2B9aKYRJd6m6sBmilObCBYqUvg=3D?= X-IronPort-AV: E=Sophos;i="5.82,219,1613430000"; d="scan'208";a="378560240" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Apr 2021 18:04:16 +0200 Date: Tue, 13 Apr 2021 18:04:16 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: "Fabio M. De Francesco" cc: outreachy-kernel@googlegroups.com, Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl() In-Reply-To: <20210413155908.8691-1-fmdefrancesco@gmail.com> Message-ID: References: <20210413155908.8691-1-fmdefrancesco@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > Removed the led_blink_hdl() function (declaration, definition, and > caller code) because it's useless. It only seems to check whether or not a > given pointer is NULL. There are other (simpler) means for that purpose. > > Signed-off-by: Fabio M. De Francesco > --- > drivers/staging/rtl8723bs/core/rtw_cmd.c | 1 - > drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 9 --------- > drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - > 3 files changed, 11 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c > index 0297fbad7bce..4c44dfd21514 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c > +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c > @@ -150,7 +150,6 @@ static struct cmd_hdl wlancmds[] = { > > GEN_MLME_EXT_HANDLER(0, h2c_msg_hdl) /*58*/ > GEN_MLME_EXT_HANDLER(sizeof(struct SetChannelPlan_param), set_chplan_hdl) /*59*/ > - GEN_MLME_EXT_HANDLER(sizeof(struct LedBlink_param), led_blink_hdl) /*60*/ This is worrisome. Doyou fully understand the impact of this? If not, the change is probably not a good idea. julia > > GEN_MLME_EXT_HANDLER(sizeof(struct SetChannelSwitch_param), set_csa_hdl) /*61*/ > GEN_MLME_EXT_HANDLER(sizeof(struct TDLSoption_param), tdls_hdl) /*62*/ > diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c > index 440e22922106..6f2a0584f977 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c > +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c > @@ -6189,15 +6189,6 @@ u8 set_chplan_hdl(struct adapter *padapter, unsigned char *pbuf) > return H2C_SUCCESS; > } > > -u8 led_blink_hdl(struct adapter *padapter, unsigned char *pbuf) > -{ > - > - if (!pbuf) > - return H2C_PARAMETERS_ERROR; > - > - return H2C_SUCCESS; > -} > - > u8 set_csa_hdl(struct adapter *padapter, unsigned char *pbuf) > { > return H2C_REJECTED; > diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h > index 5e6cf63956b8..472818c5fd83 100644 > --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h > +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h > @@ -745,7 +745,6 @@ u8 chk_bmc_sleepq_hdl(struct adapter *padapter, unsigned char *pbuf); > u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf); > u8 set_ch_hdl(struct adapter *padapter, u8 *pbuf); > u8 set_chplan_hdl(struct adapter *padapter, unsigned char *pbuf); > -u8 led_blink_hdl(struct adapter *padapter, unsigned char *pbuf); > u8 set_csa_hdl(struct adapter *padapter, unsigned char *pbuf); /* Kurt: Handling DFS channel switch announcement ie. */ > u8 tdls_hdl(struct adapter *padapter, unsigned char *pbuf); > u8 run_in_thread_hdl(struct adapter *padapter, u8 *pbuf); > -- > 2.31.1 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20210413155908.8691-1-fmdefrancesco%40gmail.com. >