forked from luck/tmp_suning_uos_patched
crypto: ccp - Fix static checker warning
Under certain configuration SEV functions can be defined as no-op. In such a case error can be uninitialized. Initialize the variable to 0. Cc: Dan Carpenter <Dan.Carpenter@oracle.com> Reported-by: Dan Carpenter <Dan.Carpenter@oracle.com> Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com> Acked-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
ac3c8f36c3
commit
b78d379517
|
@ -423,7 +423,7 @@ EXPORT_SYMBOL_GPL(psp_copy_user_blob);
|
|||
static int sev_get_api_version(void)
|
||||
{
|
||||
struct sev_user_data_status *status;
|
||||
int error, ret;
|
||||
int error = 0, ret;
|
||||
|
||||
status = &psp_master->status_cmd_buf;
|
||||
ret = sev_platform_status(status, &error);
|
||||
|
|
Loading…
Reference in New Issue
Block a user