From: Tsutomu Itoh Date: Mon, 1 Oct 2012 09:07:15 +0000 (-0600) Subject: Btrfs: remove unnecessary IS_ERR in bio_readpage_error() X-Git-Tag: v3.7-rc3~21^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a2d6a64645b38d7040bbd031c7a7b2655f5d976;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index e8ee39b..67fe401 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -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; }