summaryrefslogtreecommitdiffstats
path: root/libopkg/pkg_hash.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-05 23:49:01 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-05 23:49:01 (EST)
commitfaf155c311bbc180f7719d8a3f80c7863e8702f8 (patch)
treeede7d150fda9a9addecb2197a256d187068517b2 /libopkg/pkg_hash.c
parentad4e27a9290b15622f6343f6ecc2b15732faa6f9 (diff)
More dead code removal.
git-svn-id: http://opkg.googlecode.com/svn/trunk@271 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/pkg_hash.c')
-rw-r--r--libopkg/pkg_hash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c
index 976ec96..cba3599 100644
--- a/libopkg/pkg_hash.c
+++ b/libopkg/pkg_hash.c
@@ -124,8 +124,6 @@ int pkg_hash_add_from_file(opkg_conf_t *conf, const char *file_name,
while(*raw){ /* don't worry, we'll increment raw in the parsing function */
pkg = pkg_new();
- if (!pkg)
- return -ENOMEM;
if (pkg_parse_raw(pkg, &raw, src, dest) == 0) {
if (!pkg->architecture) {