-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/emlearn: add patch to remove redundant check
- Loading branch information
1 parent
48ccf9c
commit 771c546
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
pkg/emlearn/patches/0001-emlearn-eml_common.h-remove-redundant-check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|