From aa6d7407f90130dfea5df768787ce5c46c87f07b Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 20 May 2016 15:32:56 -0600 Subject: [PATCH] * bitmap.c (bitmap_find_bit): Remove useless test. From-SVN: r236546 --- gcc/ChangeLog | 4 ++++ gcc/bitmap.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04a098bf409..68c61dd8440 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-05-20 Jeff Law + + * bitmap.c (bitmap_find_bit): Remove useless test. + 2016-05-20 Segher Boessenkool * function.c (thread_prologue_and_epilogue_insns): Commit the diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 0c05512b666..010cf752d76 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -556,7 +556,7 @@ bitmap_find_bit (bitmap head, unsigned int bit) want, the one we want doesn't exist. */ head->current = element; head->indx = element->indx; - if (element != 0 && element->indx != indx) + if (element->indx != indx) element = 0; return element; -- 2.30.2