Drop the BUG() as all callers handle errors.
Signed-off-by: David Sterba <dsterba@suse.com>
struct extent_buffer *eb;
eb = calloc(1, sizeof(struct extent_buffer) + blocksize);
- if (!eb) {
- BUG();
+ if (!eb)
return NULL;
- }
eb->start = bytenr;
eb->len = blocksize;
struct extent_buffer *new;
new = __alloc_extent_buffer(NULL, src->start, src->len);
- if (new == NULL)
+ if (!new)
return NULL;
copy_extent_buffer(new, src, 0, 0, src->len);