From 37290a53960dcd7f71e948576b9978bf685d9012 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 16 Feb 2015 14:17:54 +0100 Subject: libmount: remove assert(arg) from public functions Signed-off-by: Karel Zak --- libmount/src/cache.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libmount/src/cache.c') 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));*/ -- cgit v1.2.3-55-g7522