Make a couple of functions static, and return void since they cannot fail.
[oweals/opkg-lede.git] / libopkg / pkg_hash.c
index ace26bf0cbcc90eceafe2effcc72952c6b228899..83415ab96e70b6c7e4a231bf5769e2a032353f36 100644 (file)
@@ -609,7 +609,6 @@ static abstract_pkg_t * add_new_abstract_pkg_by_name(hash_table_t * hash, const
   abstract_pkg_t * ab_pkg;
 
   ab_pkg = abstract_pkg_new();
-  if (ab_pkg == NULL) { return NULL; }
 
   ab_pkg->name = xstrdup(pkg_name);
   hash_table_insert(hash, pkg_name, ab_pkg);