Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3536888ima; Tue, 23 Oct 2018 07:29:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV63q49/veU1WWb9W6QMSarhR7eb+rc22i82ExfmT3BKLfGi/hSfpIZn88uXAMfCOJn14c+sU X-Received: by 2002:a63:27c1:: with SMTP id n184-v6mr46974358pgn.334.1540304949424; Tue, 23 Oct 2018 07:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540304949; cv=none; d=google.com; s=arc-20160816; b=uCy5/PnQiNee3bC1w3OeNtt+OQp7SdeWnaWsZX70TrmbAsj2Y3PdMMOyzaONlC8/Vx J5/m2lMhumMmWyt5XYSMXQvPSE1mIE40KHTcMBQEptQ3BtTBkLQKb7aO5zJ5LqSwDXkr 0PdzWnLZi0/8C9UAYo9WSRk1o9iU8hj68i0pF6e9w06m3xyHZuRuhSeDSfDmU20+zTBo QS/Er6msa5Tmdn+B+5DX44I2osJ2zysjUVbW9pAtoTbqSzdWCqujRII6owvtTTPbNvHu MBq03uqAv/TMhwL4E5PnkeGdyf4F0++ylrnL1ZjDUpB5KQcEd4rQL2I4Bk6V3eztD6sZ xqLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=DCOR9HSgjrGVQTxr0OZHi+gjHI3U3/EzTXso02i2Y4o=; b=r858QKQfKP2yinErlOzJVsl8SAKFHU0akmysiYqP4Zy3Yruo8GXVcHkxn54O5s2T8w VCi2E0hkXg0DFqv9EFaw6UTC+Osxxj8EeDxRK6Wiv81PmuLdagR9OB3e2+jif7kUI2GH cpSJ+cKdc5kVnd3bq+wQkOi2AEDcEZOMT54O0M3SGItQRqQZbsH5x9Zmn/qFySgBZF7w rzcMCiQqTffi906IvAOGXk96lfeGjJH6KsU9XhFsu/9l0uJ7pj2TsObTVLS96NNEgteN qRFpnv14JDRU59yFahUqRfa7SQReju3cjjeKpxTdJoBPm6V7VWdpz15yhqkzfAYINmvV LXdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9-v6si1362984pgb.27.2018.10.23.07.28.53; Tue, 23 Oct 2018 07:29:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728315AbeJWWwA (ORCPT + 99 others); Tue, 23 Oct 2018 18:52:00 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14107 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727758AbeJWWwA (ORCPT ); Tue, 23 Oct 2018 18:52:00 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CC8A7C6B254AC; Tue, 23 Oct 2018 22:28:13 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.408.0; Tue, 23 Oct 2018 22:28:13 +0800 Message-ID: <5BCF2FFA.3060109@huawei.com> Date: Tue, 23 Oct 2018 22:28:10 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Lubomir Rintel CC: , , , , , Subject: Re: [PATCH] libertas: remove set but not used variable 'int_type' References: <1540265568-58721-1-git-send-email-zhongjiang@huawei.com> <25ed3d0b71eb34e121f2d7a8d936665d7720270f.camel@v3.sk> In-Reply-To: <25ed3d0b71eb34e121f2d7a8d936665d7720270f.camel@v3.sk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/10/23 22:23, Lubomir Rintel wrote: > On Tue, 2018-10-23 at 11:32 +0800, zhong jiang wrote: >> int_type is not used after setting its value. It is safe to remove >> the unused variable. > Hi. I believe your colleague has sent an equivalent patch a few days > ago in <1539569795-176889-1-git-send-email-yuehaibing@huawei.com>: > > https://lore.kernel.org/linux-wireless/1539569795-176889-1-git-send-email-yuehaibing@huawei.com/ I miss that. Thanks, please ignore the patch. Sincerely, zhong jiang > Cheers, > Lubo > >> Signed-off-by: zhong jiang >> --- >> drivers/net/wireless/marvell/libertas/if_spi.c | 4 +--- >> 1 file changed, 1 insertion(+), 3 deletions(-) >> >> diff --git a/drivers/net/wireless/marvell/libertas/if_spi.c >> b/drivers/net/wireless/marvell/libertas/if_spi.c >> index 504d6e0..7c3224b 100644 >> --- a/drivers/net/wireless/marvell/libertas/if_spi.c >> +++ b/drivers/net/wireless/marvell/libertas/if_spi.c >> @@ -796,15 +796,13 @@ static void if_spi_h2c(struct if_spi_card >> *card, >> { >> struct lbs_private *priv = card->priv; >> int err = 0; >> - u16 int_type, port_reg; >> + u16 port_reg; >> >> switch (type) { >> case MVMS_DAT: >> - int_type = IF_SPI_CIC_TX_DOWNLOAD_OVER; >> port_reg = IF_SPI_DATA_RDWRPORT_REG; >> break; >> case MVMS_CMD: >> - int_type = IF_SPI_CIC_CMD_DOWNLOAD_OVER; >> port_reg = IF_SPI_CMD_RDWRPORT_REG; >> break; >> default: > > . >