> -----Original Message----- > From: Linux-nvdimm [mailto:linux-nvdimm-bounces@xxxxxxxxxxxx] On Behalf Of Goldwyn Rodrigues > Sent: Tuesday, April 16, 2019 11:42 AM > Subject: [PATCH 02/18] btrfs: Carve out btrfs_get_extent_map_write() out of btrfs_get_blocks_write() ... > +static int btrfs_get_blocks_direct_write(struct extent_map **map, > + struct buffer_head *bh_result, > + struct inode *inode, > + struct btrfs_dio_data *dio_data, > + u64 start, u64 len) > +{ > + int ret = 0; That initialization value is not needed, since ret is always overwritten two lines later. > + struct extent_map *em; > + > + ret = btrfs_get_extent_map_write(map, bh_result, inode, > + start, len); > + if (ret < 0) > + return ret; > + em = *map;