summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2016-12-08 12:11:34 +0100
committerFlorian Festi <ffesti@redhat.com>2016-12-08 13:19:13 +0100
commit8bec06c1f2a522f4a14cfb659d41d2fa7597f605 (patch)
treed0e7a328f5fdf781f562ef25afd2a9382efceed1
parentdecd7e619ee629b5bee0d2a597679cbf58457977 (diff)
downloadrpm-8bec06c1f2a522f4a14cfb659d41d2fa7597f605.tar.gz
Remove unneccesary if clauses
-rw-r--r--lib/order.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/order.c b/lib/order.c
index f2f2aec27..5fcb872fb 100644
--- a/lib/order.c
+++ b/lib/order.c
@@ -136,10 +136,9 @@ static inline int addSingleRelation(rpmte p,
}
/* Record next "q <- p" relation (i.e. "p" requires "q"). */
- if (p != q) {
- /* bump p predecessor count */
- tsi_p->tsi_count++;
- }
+
+ /* bump p predecessor count */
+ tsi_p->tsi_count++;
rel = xcalloc(1, sizeof(*rel));
rel->rel_suc = tsi_p;
@@ -147,10 +146,10 @@ static inline int addSingleRelation(rpmte p,
rel->rel_next = tsi_q->tsi_relations;
tsi_q->tsi_relations = rel;
- if (p != q) {
- /* bump q successor count */
- tsi_q->tsi_qcnt++;
- }
+
+
+ /* bump q successor count */
+ tsi_q->tsi_qcnt++;
rel = xcalloc(1, sizeof(*rel));
rel->rel_suc = tsi_q;