diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-10-20 20:09:42 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-10-24 16:39:31 +0200 |
commit | d4dab0aa34102527c32d68f69196aaabda5e3711 (patch) | |
tree | 760a89c1bc006b76d3ac41627fbeb9e474435804 /lib/unknown | |
parent | 9411c19b31b391e7be262d95fb2fa5a5162012b2 (diff) | |
download | lvm2-d4dab0aa34102527c32d68f69196aaabda5e3711.tar.gz |
cleanup: drop default implementation
Now we reference segment name via lvseg_name() and
we can drop default implementation and leave its
function pointer to be NULL.
Default give us 'return seg->segtype->name'.
Diffstat (limited to 'lib/unknown')
-rw-r--r-- | lib/unknown/unknown.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/unknown/unknown.c b/lib/unknown/unknown.c index 2ce2f9d1f..760f1c2e5 100644 --- a/lib/unknown/unknown.c +++ b/lib/unknown/unknown.c @@ -18,12 +18,6 @@ #include "text_export.h" #include "config.h" -static const char *_unknown_name(const struct lv_segment *seg) -{ - - return seg->segtype->name; -} - static int _unknown_text_import(struct lv_segment *seg, const struct dm_config_node *sn, struct dm_hash_table *pv_hash) { @@ -59,7 +53,6 @@ static void _unknown_destroy(struct segment_type *segtype) } static struct segtype_handler _unknown_ops = { - .name = _unknown_name, .text_import = _unknown_text_import, .text_export = _unknown_text_export, .destroy = _unknown_destroy, |