Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1535585
| From | Pan Bian <bianpan2016@163.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/1] btrfs: fix improper return value |
| Date | 2016-12-04 06:00 +0100 |
| Message-ID | <sKx46-2AG-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
In function btrfs_uuid_tree_iterate(), errno is assigned to variable ret on errors. However, it directly returns 0. It may be better to return ret. This patch also removes the warning, because the caller already prints a warning. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188731 Signed-off-by: Pan Bian <bianpan2016@163.com> --- fs/btrfs/uuid-tree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/btrfs/uuid-tree.c b/fs/btrfs/uuid-tree.c index 7fc89e4..83bb2f2 100644 --- a/fs/btrfs/uuid-tree.c +++ b/fs/btrfs/uuid-tree.c @@ -351,7 +351,5 @@ int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info, out: btrfs_free_path(path); - if (ret) - btrfs_warn(fs_info, "btrfs_uuid_tree_iterate failed %d", ret); - return 0; + return ret; } -- 1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/1] btrfs: fix improper return value Pan Bian <bianpan2016@163.com> - 2016-12-04 06:00 +0100 Re: [PATCH 1/1] btrfs: fix improper return value Omar Sandoval <osandov@osandov.com> - 2016-12-04 21:00 +0100
csiph-web