Skip to content

Commit

Permalink
pkg/emlearn: add patch to remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
mguetschow committed Aug 29, 2024
1 parent 48ccf9c commit 771c546
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From d35146dc1cf3c766f3d9bc6c8e83ef438047fb42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikolai=20G=C3=BCtschow?= <[email protected]>
Date: Thu, 29 Aug 2024 11:00:07 +0200
Subject: [PATCH] emlearn/eml_common.h: remove redundant check

---
emlearn/eml_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emlearn/eml_common.h b/emlearn/eml_common.h
index e4d2adf..1f8a599 100644
--- a/emlearn/eml_common.h
+++ b/emlearn/eml_common.h
@@ -37,7 +37,7 @@ eml_error_strs[EmlErrors] = {

bool
eml_error_valid(EmlError e) {
- return (e >= EmlOk && e < EmlErrors);
+ return (e < EmlErrors);
}

/**
--
2.39.2

0 comments on commit 771c546

Please sign in to comment.