Remove unused code: if pkg was NULL, we would already have segfaulted.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 3 Nov 2009 00:53:11 +0000 (00:53 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 3 Nov 2009 00:53:11 +0000 (00:53 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@241 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_conf.c

index 8e9060223b1500a8fa4ddda149671f9ef52276db..2739861eb7630e66b5941d9df30292501ad9af0c 100644 (file)
@@ -704,9 +704,6 @@ int opkg_conf_write_status_files(opkg_conf_t *conf)
                  || pkg->state_want == SW_PURGE)) {
               continue;
          }
                  || pkg->state_want == SW_PURGE)) {
               continue;
          }
-         if (!pkg) {
-           fprintf(stderr, "Null package\n");
-         }
          if (pkg->dest == NULL) {
               fprintf(stderr, "%s: ERROR: Can't write status for "
                       "package %s since it has a NULL dest\n",
          if (pkg->dest == NULL) {
               fprintf(stderr, "%s: ERROR: Can't write status for "
                       "package %s since it has a NULL dest\n",