From 0ce5504c1035128769aca154da13aab66c5ef16b Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 28 Aug 2018 09:03:54 +0200 Subject: [PATCH] scheduler.c:graph_has_edge: use isl_bool_not When isl_bool was introduced in isl-0.14.1-479-g370a8b7d0 (introduce isl_bool and isl_stat return types, Mon May 4 09:45:16 2015 +0200) isl_bool_not was not yet available. It was only introduced in isl-0.16.1-88-g9e2290e4 (add isl_bool_not, Tue Mar 1 17:15:59 2016 +0100), but at this point not all potential users were updated. This is just a stylistic correction. The original code was correct. Signed-off-by: Tobias Grosser Signed-off-by: Sven Verdoolaege --- isl_scheduler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/isl_scheduler.c b/isl_scheduler.c index eee85b7f..ddcaa43a 100644 --- a/isl_scheduler.c +++ b/isl_scheduler.c @@ -565,10 +565,8 @@ static isl_bool graph_has_edge(struct isl_sched_graph *graph, return isl_bool_false; empty = isl_map_plain_is_empty(edge->map); - if (empty < 0) - return isl_bool_error; - return !empty; + return isl_bool_not(empty); } /* Look for any edge with the same src, dst and map fields as "model". -- 2.11.4.GIT