Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1177594pxf; Fri, 2 Apr 2021 03:30:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkBv3/sYZTw/zu7rnyqZIlcWb9d7/8I/PH7h1KhAov+Blszb1Lia4csE4l3OZvBDvQO6p9 X-Received: by 2002:a5d:9e18:: with SMTP id h24mr10530513ioh.80.1617359410708; Fri, 02 Apr 2021 03:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617359410; cv=none; d=google.com; s=arc-20160816; b=QjuZzMnPEv1WyGZOZ74gJoiRMxmJem0L5Zl7uhxc4QhANbdaDEj06krqnWMimy/oh0 xvQh8GtgQ7YnSuGouD3NryOqmMxbs+ZHmz3PeVZtYhL7FL3CPpU+HMFoxwaS1mWd4fWX GjtHsZ50mCPgTcf18uQ7mK2Hk+3glfl5gQO/Dm8Re9ZldmsQxH1rozPIf8sZaXOy78B4 F1jRafrCfTxmsgFc/TKTzrMAYd+r3sTL6L7LvMgNaAiRi097Pp/SNaqaFOdRRvkclHT2 jwsmZsKKcdIS9ZMA3RvB/rCBOBCW2HafgZKKWmlSaY6vI8Y1hsGATXGHjWmkKw3Aw8B4 qfSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rsc0B+8Kw2M/r0HH3U/uNCjesc1PAh6nzYN4PL2E0d0=; b=Y0+qUzOcZvbhw7c4iP7WaJfsGNe/LBnajclR3No3d+n8JM1Rbvmv89b+IWc+fKCRDa 29a9VwkIEXI0I+TBVh2J2dVVbK7a1oS1wR/9HoZZKybqWv37i7pM0AkDxbqaaQRHnMB1 ZTsnA8FhcKXmSMPV1yDMf92DEpjQRfjXU2DSdn3JejdI56bw8ETH6BC8Rdvqzf2SsaZV asn9pC1GHL6UkJgmZ/T8BHg1b7f/CHi1LQmLCGtIbKAB6NuXvJJ2H9eEwbWLDQ+QJozA 7BdkfONcIWlvzbS4bxFaXlqGLbVE6M+GYPwucz50I1pyFoHBSbfVUJoVBg2Jf/DhUmoD csXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si7271896jat.46.2021.04.02.03.29.55; Fri, 02 Apr 2021 03:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234939AbhDBK3U (ORCPT + 99 others); Fri, 2 Apr 2021 06:29:20 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:57586 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234687AbhDBK3T (ORCPT ); Fri, 2 Apr 2021 06:29:19 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R591e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UUET0lV_1617359346; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UUET0lV_1617359346) by smtp.aliyun-inc.com(127.0.0.1); Fri, 02 Apr 2021 18:29:07 +0800 From: Yang Li To: mporter@kernel.crashing.org Cc: alex.bou9@gmail.com, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] rapidio/rio_cm: Remove an unused variable 'rc' Date: Fri, 2 Apr 2021 18:29:05 +0800 Message-Id: <1617359345-2404-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=n Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/rapidio/rio_cm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/rapidio/rio_cm.c b/drivers/rapidio/rio_cm.c index 50ec53d..c6fd181 100644 --- a/drivers/rapidio/rio_cm.c +++ b/drivers/rapidio/rio_cm.c @@ -670,13 +670,12 @@ static void rio_txcq_handler(struct cm_dev *cm, int slot) */ if (!list_empty(&cm->tx_reqs) && (cm->tx_cnt < RIOCM_TX_RING_SIZE)) { struct tx_req *req, *_req; - int rc; list_for_each_entry_safe(req, _req, &cm->tx_reqs, node) { list_del(&req->node); cm->tx_buf[cm->tx_slot] = req->buffer; - rc = rio_add_outb_message(cm->mport, req->rdev, cmbox, - req->buffer, req->len); + rio_add_outb_message(cm->mport, req->rdev, cmbox, + req->buffer, req->len); kfree(req->buffer); kfree(req); -- 1.8.3.1