Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3531425ima; Tue, 23 Oct 2018 07:24:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV61YPGCRlix0nBPmj1hR2S3gLO8MuLPTtkGeO+5Zo/z1VB/N2hpHxOMNsRCFZBA09wPP6ryu X-Received: by 2002:a17:902:1129:: with SMTP id d38-v6mr43767458pla.270.1540304641584; Tue, 23 Oct 2018 07:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540304641; cv=none; d=google.com; s=arc-20160816; b=z6qnOO7rTAyvMlcDRzM2+7BzaUT+DzT0Tw9J1xwRKNGVrafYrq7W5WbwQ+CQWmNFcP u/iuJ/9i+7u6v3J9pdPZv5NE/GBcz41b6iRQ9SA5/pPIx38sE+hdLgNK/tn1aoDBbd+M MtIn5PwNNhoHDGHodPtVf9dyJ8YRLrF/pvmdGk9Qthu5dZ75PzgcixSbP6oUDwDDoTVj mo7uSbdsVeKUqGq1IBdeEvNI0HxOrLKFv2UrtzTTWRKAcgJE7wW82zoGo2s/KLlJ1Xb6 39Bjy88s3kDWt5ZOGQPaSt1jFaxO6QQdypkwvUgJOo79tD2dVJS2TKj1Jw6K7+Oprphb DZZw== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=gn3ZYbN+aD21EUcKJgufjByNiU54fIBfgXhnb9qMkK4=; b=EGmPfqJlXNXzAL/kAJiZKpgUNxUqtpRtQVtzEBSNWUjtcnegcsMDTn9yKfySSjhpnl 7vvGZQyKUfkNBDc52+d9T+nWpja+0jIONNrEyN352WK919vZtsxjABBikOo+P2lvdpOQ kOkrySI+fiHBKTyXkN8gbZ3wM/U617KM505izZYi595lLlMW4iQ4OQlpmcpa6CjZ7G4S boX5mefjnbP8vkOqeSTl/ahazk76B/GqL/OmvuGv6J+dra9J3V6mK6wheGthOb+HKF9i vJJ47HB7grOGb/wZn1FhShrRbmb9ARaLbo4QZyOgZJChKfpc7LahGNIDSv9lpf1J4kuG 03PQ== 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 z138-v6si1544765pfc.181.2018.10.23.07.23.44; Tue, 23 Oct 2018 07:24:01 -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 S1728280AbeJWWq5 (ORCPT + 99 others); Tue, 23 Oct 2018 18:46:57 -0400 Received: from shell.v3.sk ([90.176.6.54]:60885 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728056AbeJWWq5 (ORCPT ); Tue, 23 Oct 2018 18:46:57 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 5D1EABE744; Tue, 23 Oct 2018 16:23:14 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id yRZNknH4uy6x; Tue, 23 Oct 2018 16:23:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 1FA24BE746; Tue, 23 Oct 2018 16:23:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oh4-vni3Nqp4; Tue, 23 Oct 2018 16:23:10 +0200 (CEST) Received: from belphegor (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 58918BE744; Tue, 23 Oct 2018 16:23:10 +0200 (CEST) Message-ID: <25ed3d0b71eb34e121f2d7a8d936665d7720270f.camel@v3.sk> Subject: Re: [PATCH] libertas: remove set but not used variable 'int_type' From: Lubomir Rintel To: zhong jiang , kvalo@codeaurora.org Cc: davem@davemloft.net, libertas-dev@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 23 Oct 2018 16:23:09 +0200 In-Reply-To: <1540265568-58721-1-git-send-email-zhongjiang@huawei.com> References: <1540265568-58721-1-git-send-email-zhongjiang@huawei.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1 (3.30.1-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ 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: