From 7d7b856f28e7eee26afc4a8e3e6438162128ea1e Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Tue, 3 Nov 2009 00:53:11 +0000 Subject: [PATCH] Remove unused code: if pkg was NULL, we would already have segfaulted. git-svn-id: http://opkg.googlecode.com/svn/trunk@241 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/opkg_conf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index 8e90602..2739861 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -704,9 +704,6 @@ int opkg_conf_write_status_files(opkg_conf_t *conf) || 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", -- 2.25.1