diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-27 09:23:22 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-27 12:17:16 +0200 |
commit | 3fe67217d46d2bb496b5c09b0314c7260ed6c24f (patch) | |
tree | 69e152824a5a596aa38fcd72d1f2fc50a3042d35 /coverity | |
parent | 5ff6260071ef2465ba33ce6dd9b7c7b3168f4c88 (diff) | |
download | lvm2-3fe67217d46d2bb496b5c09b0314c7260ed6c24f.tar.gz |
coverity: model few more functions
Reduce amount of FP.
Diffstat (limited to 'coverity')
-rw-r--r-- | coverity/coverity_model.c | 13 |
1 files changed, 13 insertions, 0 deletions
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) { |