From patchwork Wed Sep 8 03:00:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12480071 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B1A8C433EF for ; Wed, 8 Sep 2021 03:00:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E07EE6115A for ; Wed, 8 Sep 2021 03:00:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E07EE6115A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 9193F940061; Tue, 7 Sep 2021 23:00:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8C872940042; Tue, 7 Sep 2021 23:00:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 76A03940061; Tue, 7 Sep 2021 23:00:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0246.hostedemail.com [216.40.44.246]) by kanga.kvack.org (Postfix) with ESMTP id 685C4940042 for ; Tue, 7 Sep 2021 23:00:52 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 2A14418024ADB for ; Wed, 8 Sep 2021 03:00:52 +0000 (UTC) X-FDA: 78562903944.04.9554F80 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf21.hostedemail.com (Postfix) with ESMTP id D0D57D0299C4 for ; Wed, 8 Sep 2021 03:00:51 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id DBCB761131; Wed, 8 Sep 2021 03:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1631070051; bh=hrCzH6CKyBwJKzGuJqMipjxj8PFGtmPpym/l3xxDqhA=; h=Date:From:To:Subject:In-Reply-To:From; b=SAMKDPXG6jXTmNos0SFaAxl0LRgIbmxjH16Gm2onas7qdZrgwFHNzEBNzmJT14z10 tu0FgMV72/svmozovHVll3Eza29/wkB4zyHRgGIxfSjCJZqLLcbWt3UPLFPL1mp/Ga M+XN3+Gq4Y+384Y48yhUCWRZymOQb7rzZkRE5d0s= Date: Tue, 07 Sep 2021 20:00:50 -0700 From: Andrew Morton To: akpm@linux-foundation.org, gthelen@google.com, joel@joelfernandes.org, linux-mm@kvack.org, mm-commits@vger.kernel.org, mpe@ellerman.id.au, shuah@kernel.org, torvalds@linux-foundation.org Subject: [patch 144/147] selftests/memfd: remove unused variable Message-ID: <20210908030050.VmfzgCUzA%akpm@linux-foundation.org> In-Reply-To: <20210907195226.14b1d22a07c085b22968b933@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Queue-Id: D0D57D0299C4 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=SAMKDPXG; dmarc=none; spf=pass (imf21.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam01 X-Stat-Signature: zun9ceau7ycrt5snf96fm7hiardad3nj X-HE-Tag: 1631070051-583668 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Greg Thelen Subject: selftests/memfd: remove unused variable Commit 544029862cbb ("selftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal") added an unused variable to mfd_assert_reopen_fd(). Delete the unused variable. Link: https://lkml.kernel.org/r/20210702045509.1517643-1-gthelen@google.com Fixes: 544029862cbb ("selftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal") Signed-off-by: Greg Thelen Cc: Shuah Khan Cc: Michael Ellerman Cc: "Joel Fernandes (Google)" Signed-off-by: Andrew Morton --- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/memfd/memfd_test.c~selftests-memfd-remove-unused-variable +++ a/tools/testing/selftests/memfd/memfd_test.c @@ -56,7 +56,7 @@ static int mfd_assert_new(const char *na static int mfd_assert_reopen_fd(int fd_in) { - int r, fd; + int fd; char path[100]; sprintf(path, "/proc/self/fd/%d", fd_in);