Merge https://gitlab.denx.de/u-boot/custodians/u-boot-spi
[oweals/u-boot.git] / lib / slre.c
index e26d344865b83f7639fb711fd4b6a2c21618f4e8..e82a9e7635b1a1eafcd52130ddad33f156dad060 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <string.h>
 #else
+#include <log.h>
 #include <common.h>
 #include <linux/ctype.h>
 #endif /* SLRE_TEST */
@@ -703,8 +704,6 @@ int main(int argc, char *argv[])
 
                (void) memset(caps, 0, sizeof(caps));
 
-               res = 0;
-
                res = slre_match(&slre, data, len, caps);
                printf("Result [%d]: %d\n", i, res);