From patchwork Thu May 19 09:26:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 9125881 Return-Path: X-Original-To: patchwork-linux-nvdimm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 163659F37F for ; Thu, 19 May 2016 09:27:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59FDF20172 for ; Thu, 19 May 2016 09:27:00 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C09B2009C for ; Thu, 19 May 2016 09:26:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3572C1A1FD4; Thu, 19 May 2016 02:27:05 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A164F1A1FD4 for ; Thu, 19 May 2016 02:27:03 -0700 (PDT) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 85EBFAB1A; Thu, 19 May 2016 09:26:55 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 5A07D1E09AE; Thu, 19 May 2016 11:26:53 +0200 (CEST) From: Jan Kara To: linux-nvdimm@lists.01.org Subject: [PATCH] dax: Remove unused variable in __dax_pmd_fault() Date: Thu, 19 May 2016 11:26:52 +0200 Message-Id: <1463650012-8107-1-git-send-email-jack@suse.cz> X-Mailer: git-send-email 2.6.6 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fsdevel@vger.kernel.org, Jan Kara MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reported-by: Ross Zwisler Signed-off-by: Jan Kara Reviewed-by: Johannes Thumshirn --- fs/dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Ross spotted this small issue in my patch set so can you guys please merge this fixup as well? Thanks! diff --git a/fs/dax.c b/fs/dax.c index a07202ab8f61..10f0303a92a5 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1007,7 +1007,7 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned long address, struct block_device *bdev; pgoff_t size, pgoff; sector_t block; - int error, result = 0; + int result = 0; bool alloc = false; /* dax pmd mappings require pfn_t_devmap() */