Commit e5699f56 authored by Brijesh Singh's avatar Brijesh Singh Committed by Paolo Bonzini

crypto: ccp: Fix sparse, use plain integer as NULL pointer

Fix sparse warning: Using plain integer as NULL pointer. Replaces
assignment of 0 to pointer with NULL assignment.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Gary Hook <gary.hook@amd.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 4f2f61fc
...@@ -211,7 +211,7 @@ static int __sev_platform_shutdown_locked(int *error) ...@@ -211,7 +211,7 @@ static int __sev_platform_shutdown_locked(int *error)
{ {
int ret; int ret;
ret = __sev_do_cmd_locked(SEV_CMD_SHUTDOWN, 0, error); ret = __sev_do_cmd_locked(SEV_CMD_SHUTDOWN, NULL, error);
if (ret) if (ret)
return ret; return ret;
...@@ -271,7 +271,7 @@ static int sev_ioctl_do_reset(struct sev_issue_cmd *argp) ...@@ -271,7 +271,7 @@ static int sev_ioctl_do_reset(struct sev_issue_cmd *argp)
return rc; return rc;
} }
return __sev_do_cmd_locked(SEV_CMD_FACTORY_RESET, 0, &argp->error); return __sev_do_cmd_locked(SEV_CMD_FACTORY_RESET, NULL, &argp->error);
} }
static int sev_ioctl_do_platform_status(struct sev_issue_cmd *argp) static int sev_ioctl_do_platform_status(struct sev_issue_cmd *argp)
...@@ -299,7 +299,7 @@ static int sev_ioctl_do_pek_pdh_gen(int cmd, struct sev_issue_cmd *argp) ...@@ -299,7 +299,7 @@ static int sev_ioctl_do_pek_pdh_gen(int cmd, struct sev_issue_cmd *argp)
return rc; return rc;
} }
return __sev_do_cmd_locked(cmd, 0, &argp->error); return __sev_do_cmd_locked(cmd, NULL, &argp->error);
} }
static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp) static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp)
...@@ -624,7 +624,7 @@ EXPORT_SYMBOL_GPL(sev_guest_decommission); ...@@ -624,7 +624,7 @@ EXPORT_SYMBOL_GPL(sev_guest_decommission);
int sev_guest_df_flush(int *error) int sev_guest_df_flush(int *error)
{ {
return sev_do_cmd(SEV_CMD_DF_FLUSH, 0, error); return sev_do_cmd(SEV_CMD_DF_FLUSH, NULL, error);
} }
EXPORT_SYMBOL_GPL(sev_guest_df_flush); EXPORT_SYMBOL_GPL(sev_guest_df_flush);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment