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: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
This commit is contained in:
Tsutomu Itoh 2012-10-01 03:07:15 -06:00 committed by Chris Mason
parent 8d1a1317af
commit 7a2d6a6464

View File

@ -2110,7 +2110,7 @@ static int bio_readpage_error(struct bio *failed_bio, struct page *page,
}
read_unlock(&em_tree->lock);
if (!em || IS_ERR(em)) {
if (!em) {
kfree(failrec);
return -EIO;
}