From: cgel.zte@gmail.com
To: viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
ran.xiaokai@zte.com.cn, Zeal Robot <zealci@zte.com.cn>
Subject: [PATCH] fs: remove unused local variable inode
Date: Tue, 24 Aug 2021 00:43:00 -0700 [thread overview]
Message-ID: <20210824074300.62216-1-ran.xiaokai@zte.com.cn> (raw)
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
reply other threads:[~2021-08-24 7:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210824074300.62216-1-ran.xiaokai@zte.com.cn \
--to=cgel.zte@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ran.xiaokai@zte.com.cn \
--cc=viro@zeniv.linux.org.uk \
--cc=zealci@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).