summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lebon <jlebon@redhat.com>2017-08-15 15:23:58 -0400
committerColin Walters <walters@verbum.org>2017-08-15 16:28:27 -0400
commite226ccf6913d1d852fde1e150a99fab508f85c34 (patch)
treeefb0baa893fec7a523a30568b14578e0d6cd02b3
parent6bd24baed27b0fb60ba923440d1a0c69fed8cf23 (diff)
downloadlibglnx-e226ccf6913d1d852fde1e150a99fab508f85c34.tar.gz
console: trim useless check
The `percentage` var is a guint and so is always >= 0. Coverity CID: 163703
-rw-r--r--glnx-console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-console.c b/glnx-console.c
index 785f348..c6d9331 100644
--- a/glnx-console.c
+++ b/glnx-console.c
@@ -275,7 +275,7 @@ void
glnx_console_progress_text_percent (const char *text,
guint percentage)
{
- g_return_if_fail (percentage >= 0 && percentage <= 100);
+ g_return_if_fail (percentage <= 100);
text_percent_internal (text, percentage);
}