Files
u-boot/drivers
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
..
2015-11-02 10:38:00 +09:00
2015-11-12 18:13:19 -05:00
2015-09-02 21:28:23 -06:00
2015-11-17 23:41:41 +01:00
2015-10-22 14:22:22 -04:00
2015-11-12 18:04:12 -05:00
2015-11-19 14:03:05 +01:00
2015-05-26 14:13:12 +02:00
2015-10-23 09:42:28 -06:00
2015-10-12 12:56:32 -04:00