From: Austin Kim <austindh.kim@gmail.com>
To: tytso@mit.edu, adilger.kernel@dilger.ca
Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
austindh.kim@gmail.com
Subject: [PATCH] ext4: remove unreachable statement inside __es_insert_extent()
Date: Thu, 22 Aug 2019 15:37:43 +0900 [thread overview]
Message-ID: <20190822063743.GA36528@LGEARND20B15> (raw)
__es_insert_extent() never returns -EINVAL after BUG is executed.
So remove unreachable code.
---
fs/ext4/extents_status.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c
index a959adc..7f97360 100644
--- a/fs/ext4/extents_status.c
+++ b/fs/ext4/extents_status.c
@@ -781,7 +781,6 @@ static int __es_insert_extent(struct inode *inode, struct extent_status *newes)
p = &(*p)->rb_right;
} else {
BUG();
- return -EINVAL;
}
}
--
2.6.2
next reply other threads:[~2019-08-22 6:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-22 6:37 Austin Kim [this message]
2019-08-22 15:14 ` [PATCH] ext4: remove unreachable statement inside __es_insert_extent() Theodore Y. Ts'o
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=20190822063743.GA36528@LGEARND20B15 \
--to=austindh.kim@gmail.com \
--cc=adilger.kernel@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/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).