Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756075AbbFCSVQ (ORCPT ); Wed, 3 Jun 2015 14:21:16 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:34916 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754808AbbFCSVG (ORCPT ); Wed, 3 Jun 2015 14:21:06 -0400 Message-ID: <556F458E.20002@gmail.com> Date: Wed, 03 Jun 2015 20:21:02 +0200 From: Mateusz Kulikowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Sudip Mukherjee CC: gregkh@linuxfoundation.org, joe@perches.com, devel@driverdev.osuosl.org, dan.carpenter@oracle.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/11] staging: rtl8192e: Remove dead code: dig_t::dbg_mode References: <1433278095-13988-1-git-send-email-mateusz.kulikowski@gmail.com> <1433278095-13988-8-git-send-email-mateusz.kulikowski@gmail.com> <20150603072642.GA6897@sudip-PC> In-Reply-To: <20150603072642.GA6897@sudip-PC> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1763 Lines: 42 On 03.06.2015 09:26, Sudip Mukherjee wrote: > On Tue, Jun 02, 2015 at 10:48:11PM +0200, Mateusz Kulikowski wrote: >> dig_t::dbg_mode is initialized to one value and checked only once in code. >> This patch throws it away, and deletes always-true condition. >> >> Signed-off-by: Mateusz Kulikowski >> --- >> drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 5 +---- >> drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 24 ------------------------ >> 2 files changed, 1 insertion(+), 28 deletions(-) >> >> diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c >> index d869629..95a7c8e 100644 >> --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c >> +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c > >> @@ -1949,7 +1947,6 @@ static void dm_init_rxpath_selection(struct net_device *dev) >> DM_RxPathSelTable.cck_method = CCK_Rx_Version_2; >> else >> DM_RxPathSelTable.cck_method = CCK_Rx_Version_1; >> - DM_RxPathSelTable.DbgMode = DM_DBG_OFF; > so now DM_RxPathSelTable.DbgMode is not initialized, but at line 1992 we have > > if (!DM_RxPathSelTable.DbgMode) > DM_RxPathSelTable.rf_rssi[i] = priv->stats.rx_rssi_percentage[i]; > > am i missing something here? No, I missed that - this one should also be removed - probably because of similar naming (DbgMode, dbg_mode). Thanks for finding it - I'll fix that in v2. Apart from that - did you had time/courage to analyze rest of the patches (so I can send v2)? Regards, Mateusz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/