summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-08-11 04:50:32 +0000
committerThomas Haller <thaller@redhat.com>2019-08-16 07:42:03 +0200
commitf69755ae53bd9501d6af2e0206b2e9e17a2d20f2 (patch)
tree1c6cc6868285c6e4511e06ac43a95ecbdf4a51d3 /lib
parentde72910e6b3ec4503f23538682a89c4d444c7a92 (diff)
downloadlibnl-f69755ae53bd9501d6af2e0206b2e9e17a2d20f2.tar.gz
lib: Don't return expression in function returning void
Diffstat (limited to 'lib')
-rw-r--r--lib/cache.c2
-rw-r--r--lib/object.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cache.c b/lib/cache.c
index 425f6071..4bb10d19 100644
--- a/lib/cache.c
+++ b/lib/cache.c
@@ -422,7 +422,7 @@ void nl_cache_free(struct nl_cache *cache)
void nl_cache_put(struct nl_cache *cache)
{
- return nl_cache_free(cache);
+ nl_cache_free(cache);
}
/** @} */
diff --git a/lib/object.c b/lib/object.c
index 7ba74652..4e14554e 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -301,7 +301,7 @@ void nl_object_dump_buf(struct nl_object *obj, char *buf, size_t len)
.dp_buflen = len,
};
- return nl_object_dump(obj, &dp);
+ nl_object_dump(obj, &dp);
}
/**