Skip to content

Commit

Permalink
Btrfs: remove unnecessary IS_ERR in bio_readpage_error()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tsutomu Itoh authored and Chris Mason committed Oct 9, 2012
1 parent 8d1a131 commit 7a2d6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7a2d6a6

Please sign in to comment.