projects
/
openwrt
/
staging
/
blogic.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 e8ee39b733564098c49dfa9dd316ad24e9c0a76d..67fe401c32095e34c015a17ac41121f3ca50e2e0 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;
}