]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: return a literal instead of a variable in btrfs_init_dev_replace()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 5 Mar 2025 15:01:57 +0000 (18:01 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:49 +0000 (20:35 +0100)
commitc01b7114b809bbd3804d8a5b7e397f87f4ce52cb
tree243ffc9e10fa4b88f03bbe6b8641515fc2320384
parent477a7a9c1f46b179ccc5eb2bbf18a0966055a464
btrfs: return a literal instead of a variable in btrfs_init_dev_replace()

This is just a small clean up, it doesn't change how the code works.
Originally this code had a goto so we needed to set "ret = 0;" but now
it returns directly and so we can simplify it a bit by doing a
"return 0;" and removing the assignment.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c