u-boot/board/samsung
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
..
arndale dm: exynos: Make sure that GPIOs are requested 2014-10-22 10:36:33 -06:00
common Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
goni dm: select CONFIG_DM* options 2015-04-18 11:11:30 -06:00
odroid dm: regulator: uclass driver code cleanup 2015-05-14 19:58:34 -06:00
origen Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
smdk2410 remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
smdk5250 exynos: Add support for spring 2015-08-05 21:06:17 -06:00
smdk5420 exynos: Drop old exynos5420-specific board code 2015-08-05 21:06:16 -06:00
smdkc100 dm: select CONFIG_DM* options 2015-04-18 11:11:30 -06:00
smdkv310 Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
trats remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
trats2 dm: exynos: Make sure that GPIOs are requested 2014-10-22 10:36:33 -06:00
universal_c210 universal: request soft i2c gpio 2014-10-27 19:21:07 -06:00