soc/intel/skylake: soc/intel/skylake: Initialize struct member to 0

As per GCC 7.1 compiler struct reset_reply is considered
as uninitialized inside send_heci_reset_message function.

Change-Id: Ide53a9267dfba1a00263ada1d7016a48ecb9aad8
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/20739
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Subrata Banik 2017-07-24 12:00:39 +05:30 committed by Aaron Durbin
parent 4859ce0b81
commit 815417145e
1 changed files with 1 additions and 0 deletions

View File

@ -673,6 +673,7 @@ static int send_heci_reset_message(void)
return -1;
reply_size = sizeof(reply);
memset(&reply, 0, reply_size);
if (recv_heci_message(&reply, &reply_size) == -1)
return -1;
/* get reply result from HECI MSG */