fs/btrfs: remove redundant ret variable
PATCH 1/1 fs/btrfs: remove redundant ret variable
From: Minghao Chi <[email protected]>
Return value from fs_path_add_path() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- fs/btrfs/send.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
fs/btrfs/send.c +1 -5
@@ -528,14 +528,10 @@ static int fs_path_add_from_extent_buffer(struct fs_path *p,static int fs_path_copy (struct fs_path *p,struct fs_path *from) { -int ret; - p->reversed = from->reversed;fs_path_reset (p); - ret =fs_path_add_path (p, from); - -return ret; +return fs_path_add_path (p, from); }
Signature · 1 line
2.25.1
Quoted 8 lines · On 11.01.22 г. 3:57, [email protected] wrote:
From: Minghao Chi <[email protected]>
Return value from
fs_path_add_path()directly instead of taking this in another redundant variable.Reported-by Zeal Robot <[email protected]>Signed-off-by Minghao Chi <[email protected]>Signed-off-by CGEL ZTE <[email protected]>
Reviewed-by Nikolay Borisov <[email protected]>
<snip>
Quoted 8 lines · On Tue, Jan 11, 2022 at 01:57:16AM +0000, [email protected] wrote:
From: Minghao Chi <[email protected]>
Return value from
fs_path_add_path()directly instead of taking this in another redundant variable.Reported-by Zeal Robot <[email protected]>Signed-off-by Minghao Chi <[email protected]>Signed-off-by CGEL ZTE <[email protected]>
Added to misc-next, thanks.