Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2610515pxb; Tue, 13 Apr 2021 06:12:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD7rPl3YkyyhkxU8r0k7N0XcxpQl0fnOTHej8R1iK1gF+07txAppnpWvBYFjRpZeQFKnmB X-Received: by 2002:a17:902:d78a:b029:e4:b5ee:c719 with SMTP id z10-20020a170902d78ab02900e4b5eec719mr31805744ply.83.1618319543279; Tue, 13 Apr 2021 06:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618319543; cv=none; d=google.com; s=arc-20160816; b=z2TNXbjx8fXqiRe3VWev9edkcTszSf9hokwvukNKrCHFqU6PMS+NXiKmo/EYTikMVo ACaUm2SB27KeKSsUEyWAvs2B8Mcjng2yUoRtNVHCkYQKw4keOhCkD7Omx+4QB/sUwprR XvLIX8Lgzqeq43u5rKcfAOcpE2hgt0Ph+S/gbBEx7HqOe13iJzBC30D83AI1aaL5pF3u tX1HG3MeLKUdGUtPUQl2jGuy0SzCYskM/J1YQUzYTBf1fVxGiAC1Apg9A4/2A3VHkacR uH18QVwyRISU9v7RETdpk7NI78sPlzH5kvcBHUOv+EPVx2ELCBJThLuUfCZ14Nfx9kr7 Vw3g== 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=ZapIQ/XR+SZRqNPhCb7S4/6TTP8mDSi14R1bz0RkL94=; b=mAm0HgyT0fWRX+MKXQ5qI8j69DDYoksjJ9gYvMRrGo/hC5B04ikMYqFDtYukZlz57c 3dmBYG6//AqxV8coO7SrQY9baCOpHy055dUFkincwBgEUpmS8+4Akdq4O3+F5bHl1Mcs Uf6P6crjl5zOWW5VniuqzwUMCyrns7AP9qFJMdAGnk9fR7/v3HUtDSX9nKsp8pwuy70/ r6wfm/R9+0EqUPu7/3Vyx+rmCOFj18ogFIsfyGh4L+ihOAf+zmTFLJr0S8xvCEL4InKw nQ2crn/HhODCP2E/SWO2PDQWs4YiHqZEOtO4ZVPGZj+ZSKQQ3rqoGiGI43SrDqNG3Bcz bJRg== 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 r10si2953975pjq.95.2021.04.13.06.12.09; Tue, 13 Apr 2021 06:12:23 -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 S239900AbhDMDLh (ORCPT + 99 others); Mon, 12 Apr 2021 23:11:37 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:45869 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237629AbhDMDLg (ORCPT ); Mon, 12 Apr 2021 23:11:36 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R841e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UVPNjDM_1618283469; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVPNjDM_1618283469) by smtp.aliyun-inc.com(127.0.0.1); Tue, 13 Apr 2021 11:11:15 +0800 From: Jiapeng Chong To: mporter@kernel.crashing.org Cc: alex.bou9@gmail.com, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] rapidio: remove useless variable Date: Tue, 13 Apr 2021 11:11:07 +0800 Message-Id: <1618283467-53903-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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