diff options
Diffstat (limited to 'libmount/src/cache.c')
-rw-r--r-- | libmount/src/cache.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libmount/src/cache.c b/libmount/src/cache.c index 1f940cc73..eb6146d1a 100644 --- a/libmount/src/cache.c +++ b/libmount/src/cache.c @@ -155,7 +155,6 @@ void mnt_unref_cache(struct libmnt_cache *cache) int mnt_cache_set_targets(struct libmnt_cache *cache, struct libmnt_table *mtab) { - assert(cache); if (!cache) return -EINVAL; @@ -242,9 +241,6 @@ static const char *cache_find_path(struct libmnt_cache *cache, const char *path) { size_t i; - assert(cache); - assert(path); - if (!cache || !path) return NULL; @@ -267,10 +263,6 @@ static const char *cache_find_tag(struct libmnt_cache *cache, size_t i; size_t tksz; - assert(cache); - assert(token); - assert(value); - if (!cache || !token || !value) return NULL; @@ -326,9 +318,6 @@ int mnt_cache_read_tags(struct libmnt_cache *cache, const char *devname) const char *tags[] = { "LABEL", "UUID", "TYPE", "PARTUUID", "PARTLABEL" }; const char *blktags[] = { "LABEL", "UUID", "TYPE", "PART_ENTRY_UUID", "PART_ENTRY_NAME" }; - assert(cache); - assert(devname); - if (!cache || !devname) return -EINVAL; @@ -675,9 +664,6 @@ char *mnt_resolve_tag(const char *token, const char *value, { char *p = NULL; - assert(token); - assert(value); - /*DBG(CACHE, ul_debugobj(cache, "resolving tag token=%s value=%s", token, value));*/ |