summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-05 23:28:03 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-05 23:28:03 (EST)
commitf032fb5b8c7c73531257331dc1b5489147ca0c85 (patch)
tree2c2358c981e0bc8a1748b4ef37e636f9c3a97e1d /libopkg/opkg_download.c
parentf286ba3011c06919664acfbf1d03b1073175e819 (diff)
Remove more unused code.
git-svn-id: http://opkg.googlecode.com/svn/trunk@269 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 2d6d72c..70d1195 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -306,10 +306,7 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name
pkg->state_want = SW_INSTALL;
pkg->state_flag |= SF_PREFER;
pkg = hash_insert_pkg(&conf->pkg_hash, pkg, 1,conf);
- if ( pkg == NULL ){
- fprintf(stderr, "%s : This should never happen. Report this Bug in bugzilla please \n ",__FUNCTION__);
- return 0;
- }
+
if (namep) {
*namep = xstrdup(pkg->name);
}