summaryrefslogtreecommitdiffstats
path: root/libopkg/pkg_hash.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-24 23:22:20 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-24 23:22:20 (EST)
commitf2a37ae1c0b560a685f8a14643463b8f2a5fc8ce (patch)
treed954a285d95d287b10f95c3d3c59e384b842d98a /libopkg/pkg_hash.c
parente74d3456b50efca2e50b9c18be5faa66ec1ac67a (diff)
Make a couple of functions static, and return void since they cannot fail.
git-svn-id: http://opkg.googlecode.com/svn/trunk@368 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg_hash.c')
-rw-r--r--libopkg/pkg_hash.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c
index ace26bf..83415ab 100644
--- a/libopkg/pkg_hash.c
+++ b/libopkg/pkg_hash.c
@@ -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);