soc/intel/cannonlake: 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: I01b95d31bfb1d2e9af1704a28dacb9cfd1cdcb50 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/20941 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
cdea598e89
commit
4277667499
1 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
|||
#include <intelblocks/cse.h>
|
||||
#include <fsp/util.h>
|
||||
#include <reset.h>
|
||||
#include <string.h>
|
||||
#include <timer.h>
|
||||
|
||||
/* Reset Request */
|
||||
|
|
@ -65,6 +66,7 @@ static int send_heci_reset_message(void)
|
|||
return -1;
|
||||
|
||||
reply_size = sizeof(reply);
|
||||
memset(&reply, 0, reply_size);
|
||||
heci_receive(&reply, &reply_size);
|
||||
/* get reply result from HECI MSG */
|
||||
if (reply.result != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue