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: 9921061 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 34D9F603FA for ; Thu, 24 Aug 2017 22:23:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2754A1FF35 for ; Thu, 24 Aug 2017 22:23:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BE951FFCA; Thu, 24 Aug 2017 22:23:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 888461FFB2 for ; Thu, 24 Aug 2017 22:23:47 +0000 (UTC) Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v7OMModQ030945 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Aug 2017 22:22:51 GMT Received: from oss.oracle.com (oss-old-reserved.oracle.com [137.254.22.2]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v7OMMfKL013370 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Aug 2017 22:22:42 GMT Received: from localhost ([127.0.0.1] helo=lb-oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1dl0WP-0004Hz-8S; Thu, 24 Aug 2017 15:22:41 -0700 Received: from aserv0022.oracle.com ([141.146.126.234]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1dl0W2-0004HS-Tk for ocfs2-devel@oss.oracle.com; Thu, 24 Aug 2017 15:22:22 -0700 Received: from userp2040.oracle.com (userp2040.oracle.com [156.151.31.90]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v7OMMIOQ006911 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 24 Aug 2017 22:22:18 GMT Received: from pps.filterd (userp2040.oracle.com [127.0.0.1]) by userp2040.oracle.com (8.16.0.21/8.16.0.21) with SMTP id v7OMK2fn016533 for ; Thu, 24 Aug 2017 22:22:18 GMT Authentication-Results: oracle.com; spf=none smtp.mailfrom=arnd@arndb.de Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by userp2040.oracle.com with ESMTP id 2cj0hjtqmv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 24 Aug 2017 22:22:16 +0000 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 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/vEH2qMbJy0loPjz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nxZbVBiGntuEQpYXBcfBBoEGxseBxxMThMYThtJBRsaBBsaGgQeEgQfEBseGh8aE QpeWRd7G3pzGxEKTVwXGR8aEQpMWhdpaGlCTV0RCk1OF2gRCkNaFxgbHQQdGAQbExgEHRkRCkJe FxsRCkReFxkRCkRJFxwRCkJGF2cTbWAbW2VCH359EQpCXBcaEQpCRRdjWRJOTGlzWXlEWBEKQk4 XZRNwbUdLRG1dE2URCkJMF2x5GHNARxJYYBJCEQpCbBdkGER6fG57c3kSYREKQkAXZEYcSV9gWH kFRGIRCkJYF2J9b3kBTxgZcHB7EQpaWBcbEQpwaBdtUxwFWERMEkFdbBAaEQpwaBduWmJpE3N6T hlwQBAaEQpwaBdgRBkdfhhbWkN9axAaEQpwaBdvcH0SW29IG3JuRhAaEQpwaBdpaFlLE1JOUl14 aBAaEQpwbBdnYB9fSHxPX217BRAdGhEKcEMXZRgBGmwSZlxncFkQGRoRCm1+FxoRClhNF0sRIA= = X-PDR: PASS X-ServerName: mout.kundenserver.de X-Proofpoint-SPF-Result: None X-Proofpoint-Virus-Version: vendor=nai engine=5800 definitions=8633 signatures=668550 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=100 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=263 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1708240344 Cc: Stephen Rothwell , Arnd Bergmann , linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com Subject: [Ocfs2-devel] [PATCH] ocfs2: remove two unused variables X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Source-IP: userv0022.oracle.com [156.151.31.74] X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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