Re: [PATCHv3 2/2] btrfs: change remove_extent_mapping to be void function

From: David Sterba
Date: Fri Sep 14 2018 - 10:16:51 EST


On Thu, Sep 13, 2018 at 11:01:15AM +0800, zhong jiang wrote:
> remove_extent_mapping use the variable "ret" for return value,
> but it is not modified after initialzation. Further, I find that
> any of the callers do not handle the return value, so it is safe
> to drop the unneeded "ret" and make it to be void function.
>
> Signed-off-by: zhong jiang <zhongjiang@xxxxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>