Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1594565ybi; Sat, 25 May 2019 05:31:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrmjfYgf0BgDKILsv/m5T2AsaeQDIfKi3I6W3YOfxM9b83cxYHGUFPd82aimNcM4iaEMjU X-Received: by 2002:a63:225b:: with SMTP id t27mr25505302pgm.25.1558787471958; Sat, 25 May 2019 05:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558787471; cv=none; d=google.com; s=arc-20160816; b=vmi7jJiygxunghzKqor9IYk1j+JEXpBJO8N2KHPDLg+YcqXyZRD3dxgRx6de0PjVDs f6LYcafElLYQlkzieHA3P+dhZYpg1gQyl4ed3mRHJ6mm+ZNyzQL748IA7jy+Brlo0KXB vD2z9BlFIWUuH0aeVcQ+h/1QAlYickNjwF+rgD0XHNHNflyZl7giu9YOVbut2eAINlKQ kSYFV9kz6G1Zf7VztE9AmMWC2ss4DoJDB/rN2p4mmLh+7qhv8iNRoNS8buB6dUEQy7gl 1U9CbGSBnBLR6e1UYw+Fksp4pkFAGxEGLpRaQPZ0laASeb0BaaydhXyTpd2Sw3Jcb+Ir 3/jA== 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=jsOk+27n1mP8ddswhpS2mC9adppSRVmhDGEMOCpFKH4=; b=l8pxjMTx9Y+BRQEQs9ksXgogrhhF+l6n7Qo66LfcPlHRnV1xcON96j7sl/0t2XNsQ5 fna5f+7gw73ddsEafjkBQ5a353oR+jN03VaEqHzYDNRru7RFqcsJgp95gyqjTMdoZNBk xmL9XoV7aTb35BftSYkG2nkt53vMbv9kleHOmB4H276bAWFuddCW/z3wPxGQ86x1I0cM xjXQ6RHQdKbz6IDanahZAQuHCX7MJed91JPXPj8UKriL0Hu/R3xs7Dtj5i+T0V4vStnM pNBVb1djfmM0/JX9p7OGiflJ8lFuQNOdXsv/pgj3Blp2fpf6+h1RPU9Ox5TR9/mULjiS QEmw== 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 f66si7528628pgc.449.2019.05.25.05.30.54; Sat, 25 May 2019 05:31:11 -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 S1726864AbfEYM3o (ORCPT + 99 others); Sat, 25 May 2019 08:29:44 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54680 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726808AbfEYM3n (ORCPT ); Sat, 25 May 2019 08:29:43 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E5E25F651719228DE6B0; Sat, 25 May 2019 20:29:37 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Sat, 25 May 2019 20:29:27 +0800 From: YueHaibing To: , CC: , , , YueHaibing Subject: [PATCH -next] io_uring: remove set but not used variable 'ret' Date: Sat, 25 May 2019 20:29:04 +0800 Message-ID: <20190525122904.12792-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: fs/io_uring.c: In function io_ring_submit: fs/io_uring.c:2279:7: warning: variable ret set but not used [-Wunused-but-set-variable] It's not used since commit f3fafe4103bd ("io_uring: add support for sqe links") Signed-off-by: YueHaibing --- fs/io_uring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 8ef9d8d3c88b..e2bbd227ab2a 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2276,7 +2276,6 @@ static int io_ring_submit(struct io_ring_ctx *ctx, unsigned int to_submit) for (i = 0; i < to_submit; i++) { struct sqe_submit s; - int ret; if (!io_get_sqring(ctx, &s)) break; @@ -2292,7 +2291,7 @@ static int io_ring_submit(struct io_ring_ctx *ctx, unsigned int to_submit) s.needs_fixed_file = false; submit++; - ret = io_submit_sqe(ctx, &s, statep, &link); + io_submit_sqe(ctx, &s, statep, &link); } io_commit_sqring(ctx); -- 2.17.1