libopkg: remove unused variable from opkg_install_package()
[project/opkg-lede.git] / libopkg / opkg.c
index 2e5d01ea4865123e532335a25dc4812bc2d9f547..253080fae5f40461b0cfa94b08d9942a9d6cdcd8 100644 (file)
@@ -238,7 +238,7 @@ opkg_install_package(const char *package_name,
        opkg_progress_data_t pdata;
        pkg_t *old, *new;
        pkg_vec_t *deps, *all;
-       int i, ndepends;
+       int i;
        char **unresolved = NULL;
        const char *filename;
 
@@ -271,8 +271,7 @@ opkg_install_package(const char *package_name,
        /* find dependancies and download them */
        deps = pkg_vec_alloc();
        /* this function does not return the original package, so we insert it later */
-       ndepends = pkg_hash_fetch_unsatisfied_dependencies(new, deps,
-                                                          &unresolved);
+       pkg_hash_fetch_unsatisfied_dependencies(new, deps, &unresolved);
        if (unresolved) {
                char **tmp = unresolved;
                opkg_msg(ERROR, "Couldn't satisfy the following dependencies"