Re: [PATCH] fs: btrfs: extent_map: Change return type of unpin_extent_cache
From: Nikolay Borisov
Date: Tue Jul 02 2019 - 01:39:47 EST
On 2.07.19 Ð. 6:10 Ñ., Hariprasad Kelam wrote:
> As unpin_extent_cache never fails and Caller does not expect return
> value we can change return value from int to void.
>
> Issue identified with coccicheck
> fs/btrfs/extent_map.c:284:5-8: Unneeded variable: "ret". Return "0" on
> line 316
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@xxxxxxxxx>
Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx>