From 571541d7e8c5c594ab1055692bf9795c2251e6ba Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Wed, 21 Aug 2013 11:50:25 +0200 Subject: [PATCH] Removed tautological test. --- lib/c/labcomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/c/labcomm.c b/lib/c/labcomm.c index 5e2aedf..cb48e47 100644 --- a/lib/c/labcomm.c +++ b/lib/c/labcomm.c @@ -154,7 +154,7 @@ const char *labcomm_error_get_str(enum labcomm_error error_id) { const char *error_str = NULL; // Check if this is a known error ID. - if (0 <= error_id && error_id < labcomm_error_string_count) { + if (error_id < labcomm_error_string_count) { error_str = labcomm_error_string[error_id]; } return error_str; -- GitLab