LKML Archive on
help / color / mirror / Atom feed
Cc:,,, Zeal Robot <>
Subject: [PATCH] fs: remove unused local variable inode
Date: Tue, 24 Aug 2021 00:43:00 -0700	[thread overview]
Message-ID: <> (raw)

From: CGEL <>

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

Reported-by: Zeal Robot <>
Signed-off-by: CGEL <>
 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;

                 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] fs: remove unused local variable inode' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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