[PATCH] fs: remove unused local variable inode

From: cgel . zte
Date: Tue Aug 24 2021 - 03:43:56 EST


From: CGEL <ran.xiaokai@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: CGEL <ran.xiaokai@xxxxxxxxxx>
---
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