]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/file.c
btrfs: unify checking of IS_ERR and null
[karo-tx-linux.git] / fs / btrfs / file.c
index 75899a01dded75042b4c99f15a44cc83882730a4..83abd274370b74e8794e4f84f68d070f4e9200ff 100644 (file)
@@ -1375,7 +1375,7 @@ static long btrfs_fallocate(struct file *file, int mode,
        while (1) {
                em = btrfs_get_extent(inode, NULL, 0, cur_offset,
                                      alloc_end - cur_offset, 0);
-               BUG_ON(IS_ERR(em) || !em);
+               BUG_ON(IS_ERR_OR_NULL(em));
                last_byte = min(extent_map_end(em), alloc_end);
                last_byte = (last_byte + mask) & ~mask;
                if (em->block_start == EXTENT_MAP_HOLE ||