From a43f95b0ac2292d17d0d9e20cda40d0136620152 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 18 Mar 2015 18:27:25 +0100 Subject: [PATCH] trivial: remove a tautological compare Unsigned enum is always >= 0. --- src/nm-dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-dispatcher.c b/src/nm-dispatcher.c index 4e0a05ed7..8fdb43dfb 100644 --- a/src/nm-dispatcher.c +++ b/src/nm-dispatcher.c @@ -372,7 +372,7 @@ static const char *action_table[] = { static const char * action_to_string (DispatcherAction action) { - g_assert (action >= 0 && action < G_N_ELEMENTS (action_table)); + g_assert ((gsize) action < G_N_ELEMENTS (action_table)); return action_table[action]; }