提交 7a2d6a64 编写于 作者: T Tsutomu Itoh 提交者: Chris Mason

Btrfs: remove unnecessary IS_ERR in bio_readpage_error()

Because the value of extent_map is only a correct value or NULL,
so IS_ERR is unnecessary.
Signed-off-by: NTsutomu Itoh <t-itoh@jp.fujitsu.com>
上级 8d1a1317
...@@ -2110,7 +2110,7 @@ static int bio_readpage_error(struct bio *failed_bio, struct page *page, ...@@ -2110,7 +2110,7 @@ static int bio_readpage_error(struct bio *failed_bio, struct page *page,
} }
read_unlock(&em_tree->lock); read_unlock(&em_tree->lock);
if (!em || IS_ERR(em)) { if (!em) {
kfree(failrec); kfree(failrec);
return -EIO; return -EIO;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册