From patchwork Thu Aug 24 22:21:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 110961 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp85568qge; Thu, 24 Aug 2017 15:22:25 -0700 (PDT) X-Received: by 10.84.218.139 with SMTP id r11mr8327462pli.25.1503613345329; Thu, 24 Aug 2017 15:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503613345; cv=none; d=google.com; s=arc-20160816; b=lMhBnagH+HbVzIH4UqxR304kCNprW4BMCQBNFzAsqTpvQKtkxA5RC2fiQArbZ7jN0q KN4GBqMqeUISlRQXf7/DtoH8ECibVuU/j9vUUgyQDyqCJELIdgpPFwClQAc+FScIW7iF kutJZrA91FjHizbAkLNBVEko+SdyqZhqYu8ri7ZENAMfT6oGSeC1X84AbfqQLdVWTOx6 n2/y4u1fwCBsD5PQGOzpha7/Zf/h8QCW5UG/t1NHbVXX3KQO04HfDmXZo42EmLD5shPk pKowtvVvFVPPxrpNf2YPOBcXjwG4KYGFKHorDSXbseeGK89Mf1kpk/UyqKmPr/C2PfHD dOZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZibD5fiw/084TN8nJ4Ejdf4XzoeSjEXFEqeLsO5s3lc=; b=z7b7WZAa9oOdo+DJ7nbJBGhS6Tp2nv88awZa7LOnnoYGZEzT/7o4yJHDw5wW4AfaIm 5OK+o+07IAevFnrv4m5arnl5x6ul1r4ugHB7l7HPsyZz/KeTMg9yL9iZmYr2FfHDA1nK A4d6wWBJfXz1BtQxk+odCF1cjU+sdDIY/m4FpdaYyr2k0FgtbuLSHIywxhpgeME/deA7 qfoixp3xQ6V7G821wqmE3acUvV71bYEqRyLTi3BpMxC/XmIrbMR6CdGnF2kzuos8EVyj I/8ZjmOD1jEhZjvmjP7gOmQwGrxik8Zfr6a9dhlhqntnfQknDLeXInvypLOohYGfhzNP tRXA== 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 m125si3528736pfb.306.2017.08.24.15.22.24; Thu, 24 Aug 2017 15:22:25 -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 S1754069AbdHXWWV (ORCPT + 26 others); Thu, 24 Aug 2017 18:22:21 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:64651 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753495AbdHXWWU (ORCPT ); Thu, 24 Aug 2017 18:22:20 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MBTfC-1dsCJw2Kes-00AYNE; Fri, 25 Aug 2017 00:21:54 +0200 From: Arnd Bergmann To: Mark Fasheh , Joel Becker , Andrew Morton Cc: Arnd Bergmann , Changwei Ge , Stephen Rothwell , piaojun , ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org Subject: [PATCH] ocfs2: remove two unused variables Date: Fri, 25 Aug 2017 00:21:12 +0200 Message-Id: <20170824222149.759050-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:l/wAjvL0hoZHvaEZifOcIzLZN67TdcZC3ShQt6cV4w6u1GrFr5S /mxDtmDsADw/Y14jb7m6xP9ehM2bPjrel4h01hnNaSjC3Knn+AQAn6la+TdOiE7YAuTAxn6 YebXvZjLHlOu/vEH2qMbJy0loPjzJtH/YAfz5sTQkOOpcvaPrDhX3ZyOn45U5EmRYrNt73j 09S1Tvz2YpD+GYicybPFA== X-UI-Out-Filterresults: notjunk:1; V01:K0:+wQemiowYDY=:9WKWRXq3iLhXA320TccXZ6 UPLr36t18YGriVz1bgXKsBw9N9/OtK+MfBEYaae8aC2lMIQGttH9UAtunUv6Lz9DubRTfoaC2 GY4b7Jd3VX4Z6FxfYvK0tM8Km1UZKcomfh0NchPGZN/MknwjBHmX1JYbfFjPs29Ah40wNF4G7 m9QB60S/1CYSkORtL6WLsF/b+YGb4kOmtAAAaOnooK/nLxbLEzX2AMhrKqAaluCsK8lbCG47t X2k5tIy2AZXlajQpb1A5BmVc0qUzkUrNFWAvev93DQD71AgBcEdkRzz0KuTCTSsVw/T47GG6o huVH5FYHnV6B1TLsZwAt9ZImYhJNCjwrCaHciVs6Qk5kGeytX/aV43vhhXcuvh+kTNegOQ+ut Och5UTDgGWnUjGQMlh8tiajJIGWaOxm8JBWyeZdLQwBjtBJJdQ4fq7vL6bPKrFdxdWmkoa0YV drhKrM1wvXnBMn8wP5ibbExSBAqxNiG0wF9zMsp14Lzqx6o6H+IvZIZYWUMvDKntMjvT0T0Bl JkiI2q9oNvdgVPbfXySJGHKWmWp2ysddvpWrYhHbnqM8GKNJdgy4ZlaQoNg0kY1qvk7Anh9uf HqkwDM7nX3c8ZumLceeoyUI9RF3hCgGmiWFZIhrE8IgPnu1hBoxQDBNfeF5kc1CCABpfm5ce/ UqLThaBcxMlIuyFKbqFYw1HklbBgGG7DYjOCaV7zEGUEMiDYyt79CJkIDEDdWT+VVt8POsKxc oVAwygHWINgLTrCBwPoih3lFukmfEc1lJYZEZA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A reliability fix introduced two local variables but never used them: fs/ocfs2/dlm/dlmrecovery.c: In function 'dlm_free_dead_locks': fs/ocfs2/dlm/dlmrecovery.c:2306:6: error: unused variable 'i' [-Werror=unused-variable] fs/ocfs2/dlm/dlmrecovery.c:2305:20: error: unused variable 'queue' [-Werror=unused-variable] This removes them both again. Fixes: d09f2c6cf3b8 ("ocfs2: re-queue AST or BAST if sending is failed to improve the reliability") Signed-off-by: Arnd Bergmann --- fs/ocfs2/dlm/dlmrecovery.c | 2 -- 1 file changed, 2 deletions(-) -- 2.9.0 diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 8285485aace3..11cedda5eaf9 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c @@ -2302,8 +2302,6 @@ static void dlm_free_dead_locks(struct dlm_ctxt *dlm, struct dlm_lock *lock, *next; unsigned int freed = 0; int reserved_tmp = 0; - struct list_head *queue = NULL; - int i; /* this node is the lockres master: * 1) remove any stale locks for the dead node