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-09-02 21:28:23 -06:00
2015-09-11 17:15:32 -04:00
2015-10-22 14:22:22 -04:00
2015-05-26 14:13:12 +02:00
2015-10-21 20:47:40 -04:00
2015-10-12 12:56:32 -04:00
2015-10-23 07:37:03 +08:00
2015-10-23 07:37:03 +08:00