]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Replace route_map_clear_updated to void
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 6 Sep 2022 14:21:43 +0000 (17:21 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 12 Sep 2022 01:42:41 +0000 (04:42 +0300)
Return status not used at all.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
lib/routemap.c

index 9529b79419407e09010aa28be7d957a56312fbcc..e6310465e333484752ef7970347cdcc8fdfbef3a 100644 (file)
@@ -812,17 +812,13 @@ int route_map_mark_updated(const char *name)
        return (ret);
 }
 
-static int route_map_clear_updated(struct route_map *map)
+static void route_map_clear_updated(struct route_map *map)
 {
-       int ret = -1;
-
        if (map) {
                map->to_be_processed = false;
                if (map->deleted)
                        route_map_free_map(map);
        }
-
-       return (ret);
 }
 
 /* Lookup route map.  If there isn't route map create one and return