linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4: remove unused variable offset
@ 2016-05-17 10:47 Colin King
  0 siblings, 0 replies; only message in thread
From: Colin King @ 2016-05-17 10:47 UTC (permalink / raw)
  To: Theodore Ts'o, Andreas Dilger, linux-ext4; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

static analysis with smatch detected that offset is not used in
ext4_direct_IO_read, so remove it.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 fs/ext4/inode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index cd72f20..f7140ca 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3499,7 +3499,6 @@ static ssize_t ext4_direct_IO_read(struct kiocb *iocb, struct iov_iter *iter)
 {
 	int unlocked = 0;
 	struct inode *inode = iocb->ki_filp->f_mapping->host;
-	loff_t offset = iocb->ki_pos;
 	ssize_t ret;
 
 	if (ext4_should_dioread_nolock(inode)) {
-- 
2.8.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-17 10:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-17 10:47 [PATCH] ext4: remove unused variable offset Colin King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).