diff options
author | 2025-02-18 16:02:05 +0000 | |
---|---|---|
committer | 2025-03-18 20:35:46 +0100 | |
commit | cb474665f960bdc3802366aaa3572dcf8ac2cb76 (patch) | |
tree | dfaf6010faf0c8ddb3703e72e239c0b56a874591 | |
parent | btrfs: send: simplify return logic from process_changed_xattr() (diff) | |
download | wireguard-linux-cb474665f960bdc3802366aaa3572dcf8ac2cb76.tar.xz wireguard-linux-cb474665f960bdc3802366aaa3572dcf8ac2cb76.zip |
btrfs: send: simplify return logic from send_verity()
There's no need for the 'out' label as there are no resources to cleanup
in case of an error and we can directly return if begin_cmd() fails.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/send.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 0cbc8b5b6fab..f161e6a695bd 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -5122,7 +5122,7 @@ static int send_verity(struct send_ctx *sctx, struct fs_path *path, ret = begin_cmd(sctx, BTRFS_SEND_C_ENABLE_VERITY); if (ret < 0) - goto out; + return ret; TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, path); TLV_PUT_U8(sctx, BTRFS_SEND_A_VERITY_ALGORITHM, @@ -5137,7 +5137,6 @@ static int send_verity(struct send_ctx *sctx, struct fs_path *path, ret = send_cmd(sctx); tlv_put_failure: -out: return ret; } |