projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d1a131
)
Btrfs: remove unnecessary IS_ERR in bio_readpage_error()
author
Tsutomu Itoh
<t-itoh@jp.fujitsu.com>
Mon, 1 Oct 2012 09:07:15 +0000
(
03:07
-0600)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/fs/btrfs/extent_io.c
b/fs/btrfs/extent_io.c
index
e8ee39b
..
67fe401
100644
(file)
--- 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;
}