diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2015-11-06 14:15:37 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-19 20:13:42 -0700 |
commit | 3f51a772d4b7dccc2d379762a03535408b602e54 (patch) | |
tree | 317e7c894c76b23a1c55adb5c26255972d9f50d5 /drivers/net/fec_mxc.h | |
parent | b6ff6ce60cd294af3678606eb51fdc2fe6b752bb (diff) | |
download | u-boot-imx-3f51a772d4b7dccc2d379762a03535408b602e54.zip u-boot-imx-3f51a772d4b7dccc2d379762a03535408b602e54.tar.gz u-boot-imx-3f51a772d4b7dccc2d379762a03535408b602e54.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/fec_mxc.h')
0 files changed, 0 insertions, 0 deletions