Skip to content

Commit a0af493

Browse files
christian-heuselkdave
authored andcommitted
btrfs: send: cleanup unneeded return variable in changed_verity()
As all changed_* functions need to return something, just return 0 directly here, as the verity status is passed via the context. Reported by LKP: fs/btrfs/send.c:6877:5-8: Unneeded variable: "ret". Return "0" on line 6883 Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Christian Heusel <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 66691c6 commit a0af493

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/btrfs/send.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7190,13 +7190,11 @@ static int changed_extent(struct send_ctx *sctx,
71907190

71917191
static int changed_verity(struct send_ctx *sctx, enum btrfs_compare_tree_result result)
71927192
{
7193-
int ret = 0;
7194-
71957193
if (!sctx->cur_inode_new_gen && !sctx->cur_inode_deleted) {
71967194
if (result == BTRFS_COMPARE_TREE_NEW)
71977195
sctx->cur_inode_needs_verity = true;
71987196
}
7199-
return ret;
7197+
return 0;
72007198
}
72017199

72027200
static int dir_changed(struct send_ctx *sctx, u64 dir)

0 commit comments

Comments
 (0)