Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp831448imm; Wed, 19 Sep 2018 07:36:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY159TL248b1OWoUhLu9bIZe6B+FJWLSBKbxJn0+VzjYhKx24l96KD/XTsSiv+EsqYwSznk X-Received: by 2002:a63:24c:: with SMTP id 73-v6mr33732381pgc.252.1537367778821; Wed, 19 Sep 2018 07:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537367778; cv=none; d=google.com; s=arc-20160816; b=HV10Il2pLbq6/rD5NZacpKlYJbY/fdXk7DKyv+BI2kyffpn/FZnHFSaxPwhMSG7HTQ /cPMQO2HsJXQXCP425/izJi/m27lENsIMpLFzM9o479gIAuM3p5PFsu8aCEU66oZGWRf HzG7qh1Jz9DixA0tbyD0TfhotGMQ1tiFVMAr4reaDj3K38/Y7TXJrj0Jg7Ht+Wwp5bQR cw0IYd/O5CHHVxk1fUXjmYejmfwSacritxn7PGYQgPkhO/M1+Tr8e866hHWbiudXyxqv t5rTT7lN9Q1tYmlALDmZlB4Ivhyfc39KyvEaW8OC8s6bY0H9J/rE6UDCqvtolcXlF4UH DK4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=fimjVgMagQrBCyKfdeJYnGbcdpwMakZAlQ3s1WrpuCM=; b=rfLt169E8BLh81qLfLMi7jYab5iV6byXeHKt0EYIjrFcQWAnkQxrBXivyO8ov3DPSh +7vZWciWiNthFU0yXpZWj+QJSVARgwMYEQtR9sFNqLsxEebCi4osGINv2JZc0HfEF9uX PblX60iPoZ8MaYFeKi0ZUeVaIAEKR3A0ZU4PF60B50z6WCzJrVnD03PTIOpdRXf+Fj1Q 4B1j9j3Mt28exmEIu/BWch/mXqry7ov/XqGnaY3v5lsce7cUMV52Q3A6bD4Rh+nx6Lta aePvDuaGJ7CBbxnk8KlhFvBKHaRJeRC/mIk1qGOCSs75cjbX31plGMoACb1roKdh7Qiy sgNQ== 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 i184-v6si23684715pfb.98.2018.09.19.07.36.01; Wed, 19 Sep 2018 07:36:18 -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 S1731632AbeISUOJ (ORCPT + 99 others); Wed, 19 Sep 2018 16:14:09 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12203 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731242AbeISUOJ (ORCPT ); Wed, 19 Sep 2018 16:14:09 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 99E292C62FA0B; Wed, 19 Sep 2018 22:35:39 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.399.0; Wed, 19 Sep 2018 22:35:36 +0800 From: zhong jiang To: CC: , , Subject: [PATCH] net: ibm: remove a redundant local variable 'k' Date: Wed, 19 Sep 2018 22:23:15 +0800 Message-ID: <1537366995-59168-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The local variable 'k' is never used after being assigned. hence it should be redundant adn can be removed. Signed-off-by: zhong jiang --- drivers/net/ethernet/ibm/ehea/ehea_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c index ba580bf..7f6a401 100644 --- a/drivers/net/ethernet/ibm/ehea/ehea_main.c +++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c @@ -778,12 +778,11 @@ static void check_sqs(struct ehea_port *port) { struct ehea_swqe *swqe; int swqe_index; - int i, k; + int i; for (i = 0; i < port->num_def_qps; i++) { struct ehea_port_res *pr = &port->port_res[i]; int ret; - k = 0; swqe = ehea_get_swqe(pr->qp, &swqe_index); memset(swqe, 0, SWQE_HEADER_SIZE); atomic_dec(&pr->swqe_avail); -- 1.7.12.4