Skip to contentSkip to conversation

master - coverity: model few more functions

PATCH Zdenek Kabelac 1 participant 1 message Jun 27, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3fe67217d46d2bb496b5c09b0314c7260ed6c24f
Commit:        3fe67217d46d2bb496b5c09b0314c7260ed6c24f
Parent:        5ff6260071ef2465ba33ce6dd9b7c7b3168f4c88
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Jun 27 09:23:22 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Jun 27 12:17:16 2017 +0200

coverity: model few more functions

Reduce amount of FP.

---
 coverity/coverity_model.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
coverity/coverity_model.c +13 -0
index 250aadf..24a6afe 100644
@@ -41,6 +41,19 @@ struct lv_segment *last_seg(const struct logical_volume *lv)
 	return ((struct lv_segment **)lv)[0];
 }
 
+const char *find_config_tree_str(struct cmd_context *cmd, int id, struct profile *profile)
+{
+	return "STRING";
+}
+
+struct logical_volume *origin_from_cow(const struct logical_volume *lv)
+{
+	if (lv)
+		return lv;
+
+	__coverity_panic__();
+}
+
 /* simple_memccpy() from glibc */
 void *memccpy(void *dest, const void *src, int c, size_t n)
 {