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:
committed by
Aaron Durbin
parent
cdea598e89
commit
4277667499
@@ -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) {
|
||||
|
Reference in New Issue
Block a user