From 951f35b060bec53cba93252cc5c7aea21568594d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 16 Mar 2014 16:21:48 -0400 Subject: redundant logic is redundant --- expac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expac.c b/expac.c index 2c652e9..0c6250e 100644 --- a/expac.c +++ b/expac.c @@ -707,8 +707,8 @@ static alpm_list_t *resolve_pkg(alpm_list_t *targets) { continue; } - if (!(pkg = alpm_db_get_pkg(repo, pkgname)) && - !(pkg = alpm_db_get_pkg(repo, pkgname))) { + pkg = alpm_db_get_pkg(repo, pkgname); + if (pkg == NULL) { continue; } -- cgit v1.2.3-54-g00ecf