uboot/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
AndesTech/adp-ag101p
Arcturus/ucp1020
Barix/ipam390
BuR
BuS/eb_cpu5282
CarMediaLab/flea3
LaCie
Marvell
Seagate
a3m071
a4m072
abilis/tb100
alphaproject/ap_sh4a_4a
altera nios2: zap nios2-generic board dir 2015-10-23 14:55:36 +08:00
amcc
aristainetos
armadeus/apf27
armltd
astro/mcf5373l
atmark-techno/armadillo-800eva
atmel
avionic-design
avnet
bachmann/ot1200
barco
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
calao/usb_a9263
canmb
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 h2200: Fix build error 2015-09-07 13:41:04 +02:00
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 net: Remove all calls to net_random_ethaddr() 2015-05-20 11:07:27 -05:00
ipek01 powerpc: ipek01: convert to generic board 2015-08-14 16:27:10 -04:00
isee
jupiter
keymile
kmc/kzm9g
kosagi/novena
lge/sniper
logicpd
lwmon5
maxbcm
micronas/vct
mini-box/picosam9g45
mosaixtech/icon
motionpro
mpc8308_p1m
mpl
mpr2
ms7720se
ms7722se
ms7750se
munices
nokia/rx51
nvidia
olimex/mx23_olinuxino arm: mxs: olinuxino: move DRAM config tuning to SPL 2014-12-19 15:32:14 +01:00
omicron/calimain
openrisc/openrisc-generic
overo omap-common: Common function to display die id, replacing omap3-specific version 2015-10-22 14:18:30 -04:00
pandora omap-common: Common function to display die id, replacing omap3-specific version 2015-10-22 14:18:30 -04:00
pb1x00
pdm360ng
phytec
ppcag/bg0900
pr1
qemu-mips
quipos/cairo
raidsonic/ib62x0
raspberrypi ARM: rpi: Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support 2015-10-24 13:50:30 -04:00
renesas
ronetix
samsung Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
sandbox
sandisk/sansa_fuze_plus
sbc8349
sbc8548
sbc8641d
schulercontrol/sc_sps_1
seco
shmin
siemens
silica/pengwyn
socrates
solidrun/mx6cuboxi
spear
st
sunxi
synopsys
sysam/amcore
syteco/zmx25
t3corp kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
tbs/tbs2910
tcl/sl50
tcm-bf518
tcm-bf537
technexion
technologic/ts4800
teejet/mt_ventoux
terasic
ti ARM: AM335x: mux: change mmc0 cd pinmux from mmc0_sdcd to gpio 2015-10-22 14:44:03 -04:00
timll
toradex
tqc
udoo
v38b
ve8313
vscom/baltos
wandboard
warp
woodburn
work-microwave/work_92105
xes
xilinx