[PATCH] fs: remove unused local variable inode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux