LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] fs: remove unused local variable inode
@ 2021-08-24  7:43 cgel.zte
  0 siblings, 0 replies; only message in thread
From: cgel.zte @ 2021-08-24  7:43 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, linux-kernel, ran.xiaokai, Zeal Robot

From: CGEL <ran.xiaokai@zte.com.cn>

due to commit 3efee0567b4a ("fs: remove mandatory file locking support"),
local variable "inode" should be removed to avoid build warning.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: CGEL <ran.xiaokai@zte.com.cn>
---
 fs/remap_range.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/remap_range.c b/fs/remap_range.c
index ec6d26c526b3..6d4a9beaa097 100644
--- a/fs/remap_range.c
+++ b/fs/remap_range.c
@@ -99,8 +99,6 @@ static int generic_remap_checks(struct file *file_in, loff_t pos_in,
 static int remap_verify_area(struct file *file, loff_t pos, loff_t len,
 			     bool write)
 {
-	struct inode *inode = file_inode(file);
-
 	if (unlikely(pos < 0 || len < 0))
 		return -EINVAL;
 
-- 
2.25.1


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

only message in thread, other threads:[~2021-08-24  7:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24  7:43 [PATCH] fs: remove unused local variable inode cgel.zte

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).