uboot/drivers
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
..
bios_emulator
block Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
bootcount
clk
core dm: core: Enable optional use of fdt_translate_address() 2015-10-21 02:25:01 +02:00
cpu
crypto
ddr bitops: introduce BIT() definition 2015-09-11 17:15:32 -04:00
demo
dfu dfu: dfu_sf: Take the start address into account 2015-10-19 17:05:13 -04:00
dma dma: keystone_nav: Fix linkram size 2015-10-22 14:22:22 -04:00
fpga
gpio nios2 : convert altera_pio to driver model 2015-10-23 07:37:03 +08:00
hwmon Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
i2c I2C: mxc_i2c: make I2C1 and I2C2 optional 2015-10-02 10:42:31 +02:00
input
led
memory
misc allow LED initialization without STATUS_LED_BOOT 2015-10-24 13:50:02 -04:00
mmc drivers: mmc: omap_hsmmc: convert driver to adopt device driver model 2015-10-22 14:43:57 -04:00
mtd Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2015-10-15 08:43:38 -04:00
net net: convert altera_tse to driver model and phylib 2015-10-23 14:55:48 +08:00
pci dm: pci: Enable VGA address forwarding on bridges 2015-10-21 07:46:25 -06:00
pcmcia
pinctrl ARM: uniphier: rename CONFIG_MACH_* to CONFIG_ARCH_UNIPHIER_* 2015-09-25 00:27:53 +09:00
power sunxi: power: Change axp209 LDO3 and LDO4 default to disabled 2015-10-20 18:40:27 +02:00
pwm
qe
ram
remoteproc remoteproc: Introduce a sandbox dummy driver 2015-10-22 14:18:39 -04:00
rtc dm: rtc: Correct rtc_read32() return value 2015-10-21 07:46:50 -06:00
serial dm: keystone: serial: Add driver model support 2015-10-23 10:53:46 -04:00
soc
sound
spi spi : convert altera_spi to driver model 2015-10-23 07:36:56 +08:00
thermal thermal: imx_thermal: Do not print on error 2015-09-13 10:49:21 +02:00
timer nios2: convert altera timer to driver model 2015-10-23 07:37:03 +08:00
tpm
twserial
usb Merge git://git.denx.de/u-boot-marvell 2015-10-20 21:59:40 -04:00
video Merge git://git.denx.de/u-boot-x86 2015-10-21 20:47:40 -04:00
watchdog ls102xa: Fix reset hang 2015-10-12 12:56:32 -04:00
Kconfig dm: implement a Timer uclass 2015-10-23 07:37:03 +08:00
Makefile dm: implement a Timer uclass 2015-10-23 07:37:03 +08:00