u-boot/board
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
..
8dtech/eco5pk
a3m071
a4m072
abilis/tb100
alphaproject/ap_sh4a_4a
altera
amcc
AndesTech/adp-ag101p
Arcturus/ucp1020
aristainetos
armadeus/apf27
armltd
astro/mcf5373l
atmark-techno/armadillo-800eva
atmel
avionic-design
avnet
bachmann/ot1200
barco
Barix/ipam390
bct-brettl2
bf506f-ezkit
bf518f-ezbrd
bf525-ucr2
bf526-ezbrd
bf527-ad7160-eval
bf527-ezkit
bf527-sdp
bf533-ezkit
bf533-stamp
bf537-minotaur
bf537-pnav
bf537-srv1
bf537-stamp
bf538f-ezkit
bf548-ezkit
bf561-acvilon
bf561-ezkit
bf609-ezkit
birdland/bav335x
blackstamp
blackvme
bluegiga/apx4devkit
bluewater/snapper9260
boundary/nitrogen6x
br4
broadcom
buffalo/lsxl
BuR
BuS/eb_cpu5282
calao/usb_a9263
canmb
CarMediaLab/flea3
cirrus/edb93xx
cloudengines/pogo_e02
cm-bf527
cm-bf533
cm-bf537e
cm-bf537u
cm-bf548
cm-bf561
cm5200
cobra5272
compal/paz00
compulab
congatec/cgtqmx6eval
coreboot
corscience/tricorder
creative/xfi3
d-link/dns325
dave/common
davedenx/aria
davinci
dbau1x00
denx
dnp5370
efi
egnite/ethernut5
embest/mx6boards
emulation
esd
espt
firefly/firefly-rk3288
freescale
gaisler
gateworks/gw_ventana
gdsys
google
gumstix
h2200
highbank
hisilicon/hikey
htkw/mcx
ibf-dsp561
ids/ids8313
ifm
imgtec/malta
imx31_phycore
in-circuit/grasshopper
inka4x0
intel
intercontrol/digsy_mtc
inversepath/usbarmory
iomega/iconnect
ip04
ipek01
isee
jupiter
keymile
kmc/kzm9g
kosagi/novena
LaCie
lge/sniper
logicpd
lwmon5
Marvell
maxbcm
micronas/vct
mini-box/picosam9g45
mosaixtech/icon
motionpro
mpc8308_p1m
mpl
mpr2
ms7720se
ms7722se
ms7750se
munices
nokia/rx51
nvidia
olimex/mx23_olinuxino
omicron/calimain
openrisc/openrisc-generic
overo
pandora
pb1x00
pdm360ng
phytec
ppcag/bg0900
pr1
qemu-mips
quipos/cairo
raidsonic/ib62x0
raspberrypi
renesas
ronetix
samsung
sandbox
sandisk/sansa_fuze_plus
sbc8349
sbc8548
sbc8641d
schulercontrol/sc_sps_1
Seagate
seco
shmin
siemens
silica/pengwyn
socrates
solidrun/mx6cuboxi
spear
st
sunxi
synopsys
sysam/amcore
syteco/zmx25
t3corp
tbs/tbs2910
tcl/sl50
tcm-bf518
tcm-bf537
technexion
technologic/ts4800
teejet/mt_ventoux
terasic
ti
timll
toradex
tqc
udoo
v38b
ve8313
vscom/baltos
wandboard
warp
woodburn
work-microwave/work_92105
xes
xilinx