From 3fe67217d46d2bb496b5c09b0314c7260ed6c24f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 27 Jun 2017 09:23:22 +0200 Subject: coverity: model few more functions Reduce amount of FP. --- coverity/coverity_model.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'coverity') diff --git a/coverity/coverity_model.c b/coverity/coverity_model.c index 250aadf4c..24a6afeef 100644 --- a/coverity/coverity_model.c +++ b/coverity/coverity_model.c @@ -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) { -- cgit v1.2.1