From patchwork Fri Jul 2 04:55:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Thelen X-Patchwork-Id: 12355495 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=-26.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL 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 5D074C11F6A for ; Fri, 2 Jul 2021 04:55:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 477B461413 for ; Fri, 2 Jul 2021 04:55:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233933AbhGBE5x (ORCPT ); Fri, 2 Jul 2021 00:57:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233542AbhGBE5u (ORCPT ); Fri, 2 Jul 2021 00:57:50 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE40DC061762 for ; Thu, 1 Jul 2021 21:55:18 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id d11-20020a0cf6cb0000b029028486d617faso5422798qvo.19 for ; Thu, 01 Jul 2021 21:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=r2Kq6aGqAuq4Pv1SlGhd10LnvnYS6xXKFusVet9luSw=; b=JfAxOM3uFhUKSQ+6IHdpuH1wCPcfMx7QAM5TmlyH9yNnFf7nHDROzrQZE0Tp5G0FXM gZ0E0cvA84Glaovbt4ER/tvR/eiPtxxqm4vzQ2rLpGfeeuOSLxpusNhdGJSh0VHCqM9w /Thyv6X48Jkpk+GqV3rnJoAnomd+a27SqEJUTiPwYbD30dooKFGvgTvbN+XIHZ6MPWOO nCTLokvjBCE5wUIZG6Tk8kNaywDnJ/7UWvRIFV44wRjcsbU6aXaeAwaLa2W1fn0QE4uc 0I6OZn6sGZRa8V0W58b89ca7EHct0MPCrvMeBHdwahUdn09+pykAJX91hza4+D0eo5Zc 65Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=r2Kq6aGqAuq4Pv1SlGhd10LnvnYS6xXKFusVet9luSw=; b=Q9/b8nTEOZ4bXJA9TNtK4IYbQvqXeu6hATGFt/BevjxqJrENCSQ4X5FI65+bpkZKg3 TE/ga276oBDaLsZgvhcpc7lefsGBpOO09P2elSR3GabbMhJL6grCmkJBo1mbysjoIhB4 uVPYUGqPUVqQ8x/wSiNemKG8/kfJxwxtl8dMUibvMfpEFfO9qkQFVGEBplQVbalFujAG wgZzouvEuaM7GPE5wi6dkTmS70UrR+9Bt4OFJhdDGbVH0ICY66XikTQADQ5Ju9+DCEMo 5YfXRb14C8XPLw2vh62qAhx9HggpIT14kwJV27+dLoEDSb9pe60r+NTVxsvLaQ2IA0s2 GRIA== X-Gm-Message-State: AOAM533Y7j9tGj6qbDMHh9MS9UYhPBrvfaG01jNZik8ru+CiKZVQz7u4 hzJ8hO3ITcx9WvR/DVF0DKXG/J+uIM3u X-Google-Smtp-Source: ABdhPJyabafndSiPzXuzqRurfZ+C7hfuGXB2Gz7DP8fpH4wfzuldifH3K52owDZeo9bYaOMrRVSvK7PvuilC X-Received: from gthelen2.svl.corp.google.com ([2620:15c:2cd:202:81c6:dd12:da9f:dd72]) (user=gthelen job=sendgmr) by 2002:a05:6214:d49:: with SMTP id 9mr3502901qvr.30.1625201717833; Thu, 01 Jul 2021 21:55:17 -0700 (PDT) Date: Thu, 1 Jul 2021 21:55:09 -0700 Message-Id: <20210702045509.1517643-1-gthelen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog Subject: [PATCH] selftests/memfd: remove unused variable From: Greg Thelen To: Shuah Khan , Michael Ellerman , Andrew Morton , "Joel Fernandes (Google)" Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Thelen Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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. Fixes: 544029862cbb ("selftests/memfd: add tests for F_SEAL_FUTURE_WRITE seal") Signed-off-by: Greg Thelen --- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c index 74baab83fec3..192a2899bae8 100644 --- a/tools/testing/selftests/memfd/memfd_test.c +++ b/tools/testing/selftests/memfd/memfd_test.c @@ -56,7 +56,7 @@ static int mfd_assert_new(const char *name, loff_t sz, unsigned int flags) 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);