Btrfs: remove unnecessary IS_ERR in bio_readpage_error()
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Mon, 1 Oct 2012 09:07:15 +0000 (03:07 -0600)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:15:43 +0000 (09:15 -0400)
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>
fs/btrfs/extent_io.c

index e8ee39b733564098c49dfa9dd316ad24e9c0a76d..67fe401c32095e34c015a17ac41121f3ca50e2e0 100644 (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;
                }