Re: [U-Boot] [PATCH] sandbox: cros_ec: fix uninitialized use of len

2015-11-13 Thread Simon Glass
Applied to u-boot-dm, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] sandbox: cros_ec: fix uninitialized use of len

2015-11-06 Thread Simon Glass
On 6 November 2015 at 05:15, Daniel Schwierzeck wrote: > 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] >

[U-Boot] [PATCH] sandbox: cros_ec: fix uninitialized use of len

2015-11-06 Thread Daniel Schwierzeck
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