The same functionality was open-coded here. Change this by calling the new helper: has_users(). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- simplify.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/simplify.c b/simplify.c index 971f8ca91..5a90b9c6a 100644 --- a/simplify.c +++ b/simplify.c @@ -308,11 +308,8 @@ void kill_insn(struct instruction *insn, int force) */ static int dead_insn(struct instruction *insn, pseudo_t *src1, pseudo_t *src2, pseudo_t *src3) { - struct pseudo_user *pu; - FOR_EACH_PTR(insn->target->users, pu) { - if (*pu->userp != VOID) - return 0; - } END_FOR_EACH_PTR(pu); + if (has_users(insn->target)) + return 0; insn->bb = NULL; kill_use(src1); -- 2.16.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html