stable-2.02 - debug: remove stacktrace on regular path
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=03bddd7d41bc644dfe6498c3b2d0d412190f2e5e Commit: 03bddd7d41bc644dfe6498c3b2d0d412190f2e5e Parent: e8df5038853b927fefc83e4ae75a38411cc2d865 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Sep 26 14:52:27 2020 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Oct 16 18:09:55 2020 +0200
debug: remove stacktrace on regular path
Here _insert is expected to also fail, so just regular 'return 0'.
--- lib/device/dev-cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/device/dev-cache.c +2 -2
@@ -1193,13 +1193,13 @@ static int _insert(const char *path, const struct stat *info, }if (rec && !_insert_dir (path)) - return_0; +return 0 ; }else {/* add a device */ if (!S_ISBLK (info->st_mode))return 1 ;if (!_insert_dev (path, info->st_rdev)) - return_0; +return 0 ; }return 1 ;