From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: master - debug: remove stacktrace on regular path
Date: Tue, 29 Sep 2020 08:45:28 +0000 (GMT) [thread overview]
Message-ID: <20200929084528.9D770384B010@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6728788bf5b7327a167675e99a1e00c168c6c563
Commit: 6728788bf5b7327a167675e99a1e00c168c6c563
Parent: 0c89c5a40f8aeda6939a9596615c5d5c1471f352
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Sat Sep 26 14:52:27 2020 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Tue Sep 29 10:43:56 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(-)
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c
index 7f5e55e8c..84d65c4db 100644
--- a/lib/device/dev-cache.c
+++ b/lib/device/dev-cache.c
@@ -1158,13 +1158,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;
reply other threads:[~2020-09-29 8:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200929084528.9D770384B010@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.