More dead code removal.
[oweals/opkg-lede.git] / libopkg / opkg_install.c
index b3ece9c80de3d271f208ca0c6cbc994bec8cf3ec..4a1ff9ac441cd7dd402145af1f0e2446d5c23640 100644 (file)
@@ -86,9 +86,6 @@ int opkg_install_from_file(opkg_conf_t *conf, const char *filename)
      char *old_version, *new_version;
 
      pkg = pkg_new();
-     if (pkg == NULL) {
-         return ENOMEM;
-     }
 
      err = pkg_init_from_file(pkg, filename);
      if (err) {