Skip to content
Snippets Groups Projects
Commit 571541d7 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Removed tautological test.

parent d0109d90
Branches
Tags
No related merge requests found
...@@ -154,7 +154,7 @@ const char *labcomm_error_get_str(enum labcomm_error error_id) ...@@ -154,7 +154,7 @@ const char *labcomm_error_get_str(enum labcomm_error error_id)
{ {
const char *error_str = NULL; const char *error_str = NULL;
// Check if this is a known error ID. // 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]; error_str = labcomm_error_string[error_id];
} }
return error_str; return error_str;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment