summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorTsutomu Itoh2012-10-01 11:07:15 +0200
committerChris Mason2012-10-09 15:15:43 +0200
commit7a2d6a64645b38d7040bbd031c7a7b2655f5d976 (patch)
treec9de30e5bfcf283501ee91b63c82c9421fa835cf /fs/btrfs/extent_io.c
parentbtrfs: remove unused function btrfs_insert_some_items() (diff)
downloadkernel-qcow2-linux-7a2d6a64645b38d7040bbd031c7a7b2655f5d976.tar.gz
kernel-qcow2-linux-7a2d6a64645b38d7040bbd031c7a7b2655f5d976.tar.xz
kernel-qcow2-linux-7a2d6a64645b38d7040bbd031c7a7b2655f5d976.zip
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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index e8ee39b73356..67fe401c3209 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;
}