diff mbox

dax: Remove unused variable in __dax_pmd_fault()

Message ID 1463650012-8107-1-git-send-email-jack@suse.cz (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jan Kara May 19, 2016, 9:26 a.m. UTC
Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
---
 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!

Comments

Johannes Thumshirn May 20, 2016, 7:55 a.m. UTC | #1
On Thu, May 19, 2016 at 11:26:52AM +0200, Jan Kara wrote:
> Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
> Signed-off-by: Jan Kara <jack@suse.cz>

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
diff mbox

Patch

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() */