Thomas Huth 310ae37edb Fix bad return value checks (detected with Coccinelle)
In the "Getting Started with Coccinelle - KVM edition" presentation that
has been held by Julia Lawall at the KVM forum 2015 (see the slides at
http://events.linuxfoundation.org/sites/events/files/slides/tutorial_kvm_0.pdf),
she pointed out some bad return value checks in U-Boot that can be
detected with Coccinelle by using the following config file:

@@
identifier x,y;
identifier f;
statement S;
@@
x = f(...);
(
 if (x < 0) S
|
 if (
-     y
+     x
 < 0) S
)

This patch now fixes these issues.

Signed-off-by: Thomas Huth <huth@tuxfamily.org>
2015-10-24 13:50:30 -04:00
..
2015-10-23 14:55:36 +08:00
2015-09-11 17:12:57 -04:00
2015-09-11 14:59:16 -04:00
2015-09-28 10:48:23 -04:00
2015-08-05 08:44:06 -06:00
2015-09-11 14:57:40 -04:00
2015-10-16 07:21:09 -04:00
2014-11-26 11:21:14 -05:00
2015-09-07 13:41:04 +02:00
2015-01-29 13:11:02 +01:00
2015-10-11 17:12:10 -04:00
2015-03-24 10:50:50 -04:00
2015-10-20 22:48:29 +02:00
2015-10-15 11:16:17 +02:00
2015-01-12 09:38:47 -05:00