lkml.org 
[lkml]   [2018]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] ocfs2: remove set but not used variable 'end'
Date
Fixes gcc '-Wunused-but-set-variable' warning:

fs/ocfs2/file.c: In function 'ocfs2_prepare_inode_for_write':
fs/ocfs2/file.c:2143:9: warning:
variable 'end' set but not used [-Wunused-but-set-variable]

It not used any more after commit
f1f973ffce96 ("ocfs2: code clean up for direct io")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
fs/ocfs2/file.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index d640c5f..1905ead 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2140,7 +2140,6 @@ static int ocfs2_prepare_inode_for_write(struct file *file,
struct dentry *dentry = file->f_path.dentry;
struct inode *inode = d_inode(dentry);
struct buffer_head *di_bh = NULL;
- loff_t end;

/*
* We start with a read level meta lock and only jump to an ex
@@ -2204,8 +2203,6 @@ static int ocfs2_prepare_inode_for_write(struct file *file,
}
}

- end = pos + count;
-
ret = ocfs2_check_range_for_refcount(inode, pos, count);
if (ret == 1) {
ocfs2_inode_unlock(inode, meta_level);


\
 
 \ /
  Last update: 2018-11-10 08:12    [W:0.049 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site