diff options
author | Karel Zak | 2015-02-16 14:17:54 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-16 14:17:54 +0100 |
commit | 37290a53960dcd7f71e948576b9978bf685d9012 (patch) | |
tree | 2846a160de656ea320057e6e6e83ff01bd4ea139 /libmount/src/cache.c | |
parent | libsmartcols: remove assert(arg) from public functions (diff) | |
download | kernel-qcow2-util-linux-37290a53960dcd7f71e948576b9978bf685d9012.tar.gz kernel-qcow2-util-linux-37290a53960dcd7f71e948576b9978bf685d9012.tar.xz kernel-qcow2-util-linux-37290a53960dcd7f71e948576b9978bf685d9012.zip |
libmount: remove assert(arg) from public functions
Signed-off-by: Karel Zak <kzak@redhat.com>
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));*/ |