u-boot/drivers/misc
Daniel Schwierzeck 3f51a772d4 sandbox: cros_ec: fix uninitialized use of len
Building with gcc-5.2 raises this warning:

drivers/misc/cros_ec_sandbox.c: In function cros_ec_sandbox_packet:
drivers/misc/cros_ec_sandbox.c:483:5: warning: len may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (len < 0)
     ^

If the function process_cmd() is called with
req_hdr->command == EC_CMD_ENTERING_MODE, the value of len will be
returned uninitialized.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
2015-11-19 20:13:42 -07:00
..
ali512x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
altera_sysid.c altera_sysid: change ioremap to map_physmem 2015-11-18 21:18:30 +08:00
cbmem_console.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
cros_ec.c cros_ec: Use udevice instead of cros_ec_dev for keyboard functions 2015-11-19 20:13:40 -07:00
cros_ec_i2c.c cros_ec: exynos: Match up device tree with kernel version 2015-04-18 11:11:16 -06:00
cros_ec_lpc.c cros_ec: exynos: Match up device tree with kernel version 2015-04-18 11:11:16 -06:00
cros_ec_sandbox.c sandbox: cros_ec: fix uninitialized use of len 2015-11-19 20:13:42 -07:00
cros_ec_spi.c dm: Rename dev_get_parentdata() to dev_get_parent_priv() 2015-10-23 09:42:28 -06:00
ds4510.c cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
fsl_debug_server.c armv8/fsl_lsch3: Change arch to fsl-layerscape 2015-10-29 10:34:00 -07:00
fsl_devdis.c arm/ls102xa:add hwconfig setting to support disable unused devices 2015-09-01 21:49:20 -05:00
fsl_ifc.c armv8/ls2085aqds: NAND boot support 2015-04-23 16:46:50 -07:00
fsl_iim.c arm: mx5: Add fuse supply enable in fsl_iim 2014-01-03 15:44:06 +01:00
fsl_sec_mon.c fsl_sec_mon: Add driver for Security Monitor block of Freescale 2015-03-05 12:04:59 -08:00
gpio_led.c add generic stubs for GPIO LEDs 2015-10-23 12:15:28 -04:00
i2c_eeprom.c i2c_eeprom: include <linux/err.h> to fix build error 2015-01-05 17:45:15 -07:00
i2c_eeprom_emul.c sandbox: Add missing errno.h includes in a few files 2015-05-14 18:49:34 -06:00
Kconfig driver: misc: add MXC_OCOTP Kconfig entry 2015-10-30 15:01:27 +01:00
Makefile nios2: convert altera sysid to driver model 2015-10-23 07:37:03 +08:00
mc9sdz60.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
misc-uclass.c dm: implement a Miscellaneous uclass 2015-10-23 07:37:03 +08:00
mxc_ocotp.c mxc: ocotp fix hole in shadow registers 2015-09-02 15:39:51 +02:00
mxs_ocotp.c mxs_ocotp: Shift the HBUS divider correctly 2015-09-02 15:26:13 +02:00
ns87308.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pca9551_led.c allow LED initialization without STATUS_LED_BOOT 2015-10-24 13:50:02 -04:00
pdsp188x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
reset-uclass.c dm: reset: Allow reset_walk() to return 2015-07-21 17:39:31 -06:00
reset_sandbox.c sandbox: Correct operaion of 'reset' command 2015-10-05 15:47:49 +01:00
smsc_lpc47m.c x86: superio: Add keyboard controller support to smsc_lpc47m driver 2015-08-26 07:54:12 -07:00
status_led.c allow LED initialization without STATUS_LED_BOOT 2015-10-24 13:50:02 -04:00
swap_case.c sandbox: Add missing errno.h includes in a few files 2015-05-14 18:49:34 -06:00
syscon_sandbox.c dm: test: Add a test for the system controller uclass 2015-07-21 17:39:33 -06:00
twl4030_led.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00