[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150603072642.GA6897@sudip-PC>
Date: Wed, 3 Jun 2015 12:56:42 +0530
From: Sudip Mukherjee <sudipm.mukherjee@...il.com>
To: Mateusz Kulikowski <mateusz.kulikowski@...il.com>
Cc: gregkh@...uxfoundation.org, joe@...ches.com,
devel@...verdev.osuosl.org, dan.carpenter@...cle.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 07/11] staging: rtl8192e: Remove dead code:
dig_t::dbg_mode
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 <mateusz.kulikowski@...il.com>
> ---
> 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
<snip>
> @@ -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?
regards
sudip
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists