Re: [U-Boot] [PATCH v2 1/1] lib/slre: remove superfluous assignment

2018-03-18 Thread Tom Rini
On Sun, Mar 18, 2018 at 11:28:20PM +0100, Heinrich Schuchardt wrote:

> It makes no sense to assign a value to 'res' if the next use of the
> variable is an assignment.
> 
> Signed-off-by: Heinrich Schuchardt 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 1/1] lib/slre: remove superfluous assignment

2018-03-18 Thread Heinrich Schuchardt
It makes no sense to assign a value to 'res' if the next use of the
variable is an assignment.

Signed-off-by: Heinrich Schuchardt 
---
v2
correct commit message
---
 lib/slre.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/slre.c b/lib/slre.c
index e26d344865..969c46a859 100644
--- a/lib/slre.c
+++ b/lib/slre.c
@@ -703,8 +703,6 @@ int main(int argc, char *argv[])
 
(void) memset(caps, 0, sizeof(caps));
 
-   res = 0;
-
res = slre_match(, data, len, caps);
printf("Result [%d]: %d\n", i, res);
 
-- 
2.16.2

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot