Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-02 20:28:46 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-02 20:28:46 +0000
commit5839652c410415c496f4ae59692fa3541331bb95 (patch)
tree78fefa59bc1842621a019822d4ead5e7181f5744 /lib/libalpm/cache.c
parent96de3501ab94f724fd3f29abcbbab4399c29a6a1 (diff)
code cleanup
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r--lib/libalpm/cache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index 4d301768..20d3ed5b 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -130,7 +130,6 @@ int db_remove_pkgfromcache(pmdb_t *db, pmpkg_t *pkg)
}
db->pkgcache = _alpm_list_remove(db->pkgcache, pkg, pkg_cmp, (void **)&data);
-
if(data == NULL) {
/* package not found */
return(-1);