diff mbox

kmem_cache_alloc doesn't return ERR_PTR so no need to check for it.

Message ID 4CDDF2CF.9060605@csamuel.org (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Samuel Nov. 13, 2010, 2:07 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index 23cb8da..8797704 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -50,7 +50,7 @@  struct extent_map *alloc_extent_map(gfp_t mask)
 {
        struct extent_map *em;
        em = kmem_cache_alloc(extent_map_cache, mask);
-       if (!em || IS_ERR(em))
+       if (!em)
                return em;
        em->in_tree = 0;
        em->flags = 0;