Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp303320rwe; Wed, 24 Aug 2022 00:57:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ytjzO9rkYBUyk3XvQgziN9Rmj1rSO2FeLk4sM2XlWMjrYpSAb7QT9H7kDrwKzJ/uf9Ke9 X-Received: by 2002:a17:907:b0e:b0:73d:608a:e655 with SMTP id h14-20020a1709070b0e00b0073d608ae655mr2086717ejl.312.1661327857393; Wed, 24 Aug 2022 00:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661327857; cv=none; d=google.com; s=arc-20160816; b=zABOa80llnWbi/qeGjXYe9nHT/ZEnTp3v5QvUOmQGNM+9GdbHIeNXv7hEyx4sAT7Vb w+YA+n7oDjDR9XLjn9xOFznZH3D19TfhcxB5M8+KNJx+uxwYH2grGn9EVYoZNN7Jlh2D z4dCx9sCDLLkZRbGSeLWGcrUXhaGJ0hZX6et/JTLdBfGeg2tYFAnMEPiZ6dt+YWPyr9f PzVXPP38AXmhtOcafEi+pi/hpkmOeiNlHBsTmJwoL9+3IQh8PxyPU6idoXaVeZsebXWr ixbP85K+9WJo5YLVGXC8z0OmjsgszNQH/wxYMrEd9vz5BPmAwJew/hrF2Bc9+CIkYbWP NRVQ== 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:dkim-signature; bh=DJjiIOEQIs2TIKhR//KHHq8rrYIG6LWPSmpI7MagC8A=; b=NJ+hXVq3SJWn77ABeKrGu15XTJB/NJ9MvsIlg56DvMTDxd/8myjxaRucsjmsP8muzS JjjvSQTopD6OzIiVjNQk90GtIdirpBQgJUDlDYizz+bgIn3b69/YNkqIctDyPqoIQccW LTRYsYd+tohABDaAsCaZ7FJpbRB5pYipQLh78GiGxmttc0NSt/+uABGyHFSCzQ/t7Vq4 DS6v45jqJRAmG4zxnKk9c6ZREyuq3mu0jLLDPWWl867GWms/73IE091xWuMn9z9iLtQd lZVLurNiga3VDsuejxtgpQpDgaWL2NYLAWJVCga+H28I7Q/2Z/Nkvx0n80kMET6B6X4f Oejw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RJeW7TjH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb20-20020a170907961400b0073d82e941desi1930811ejc.735.2022.08.24.00.57.10; Wed, 24 Aug 2022 00:57:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RJeW7TjH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234852AbiHXHwU (ORCPT + 99 others); Wed, 24 Aug 2022 03:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbiHXHwT (ORCPT ); Wed, 24 Aug 2022 03:52:19 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4CAD7FF91; Wed, 24 Aug 2022 00:52:17 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id y141so15736549pfb.7; Wed, 24 Aug 2022 00:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=DJjiIOEQIs2TIKhR//KHHq8rrYIG6LWPSmpI7MagC8A=; b=RJeW7TjH0W0m2aMCi8A+OeEI8DUHjL8V4R9Voj3QkrMGNiBRhHPIwiaso1FB3paIMn 9TyXbKLguCUAcGGsP/tsXaoGtJ6rDgBVDsalLBd7RMG/BaD38/W4amWj7UOEyYHjPS5t AJcTck6EtlyRm4M//t77OTAKtbZGahm+bt/S38OxQYTY+n5qyCZz5vT7pOzX0Gr/2i/9 g7F7EXU366k0fWE3qQWQKb0s5wKUu2d1nZL/KUW5pRiFTDTgvjFFZJDqWEwlgFo6QGNk BW63WbTP2AREfjZ3le5iW1lzraB/Jrp32VRWvId2r5gvrwDIRJATJfziSdYFmnMKj8r8 4z1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=DJjiIOEQIs2TIKhR//KHHq8rrYIG6LWPSmpI7MagC8A=; b=4oB9OKLs1ODLhxPIxu3bJ21eQbSmkYiLtoODBRzxrr2Z5VrNcOjg1QjxxnWlr5QSif cTNlR2LeEt4DBH8BwX3O9g/mGab1qnMWo1ge7nrVy3KmoXHYVUT8wzlVpOda4UBIqG7m PWK9qe4oIyR8n+qDhPgPE+EieR9FcxSnZAVHso7etJtHdPPVGiZVpTlH5UdZtBXe1Kmd MXg7h3idpalJwSG8NzMco+k2s6PvtVXQncHDTXiTy8Cg/SX3AApSSC4syUjdjzO8SwTh P6JTtepvCV9Jtj5cMVTDg3RGdM1Q5gBMAaqgaSILIgCnbtt0/c2hnqFzUC1TrwIJMzSj A4AQ== X-Gm-Message-State: ACgBeo2PsaqCyaC166viDqu5NgeKE233XirysxSlfZKf3sDl4cD2tjfX AWpxLxdVTbez7ZnAWd3+324dgIeaGJg= X-Received: by 2002:a63:8aca:0:b0:42b:b13:b252 with SMTP id y193-20020a638aca000000b0042b0b13b252mr3199618pgd.246.1661327537236; Wed, 24 Aug 2022 00:52:17 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id e62-20020a621e41000000b0052da33fe7d2sm12424499pfe.95.2022.08.24.00.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 00:52:16 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: ye.xingchen@zte.com.cn To: axboe@kernel.dk Cc: haris.iqbal@ionos.com, jinpu.wang@ionos.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ye xingchen , Zeal Robot Subject: [PATCH linux-next] block/rnbd-clt: Remove the unneeded result variable Date: Wed, 24 Aug 2022 07:52:13 +0000 Message-Id: <20220824075213.221397-1-ye.xingchen@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ye xingchen Return the value from rtrs_clt_rdma_cq_direct() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: ye xingchen --- drivers/block/rnbd/rnbd-clt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/rnbd/rnbd-clt.c b/drivers/block/rnbd/rnbd-clt.c index 9d01e7ab33e4..78334da74d8b 100644 --- a/drivers/block/rnbd/rnbd-clt.c +++ b/drivers/block/rnbd/rnbd-clt.c @@ -1159,10 +1159,8 @@ static int rnbd_rdma_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob) { struct rnbd_queue *q = hctx->driver_data; struct rnbd_clt_dev *dev = q->dev; - int cnt; - cnt = rtrs_clt_rdma_cq_direct(dev->sess->rtrs, hctx->queue_num); - return cnt; + return rtrs_clt_rdma_cq_direct(dev->sess->rtrs, hctx->queue_num); } static void rnbd_rdma_map_queues(struct blk_mq_tag_set *set) -- 2.25.1