Commit d25bae7d authored by Borislav Petkov (AMD)'s avatar Borislav Petkov (AMD)

virt/coco/sev-guest: Do some code style cleanups

Remove unnecessary linebreaks, make the code more compact.

No functional changes.
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20230307192449.24732-7-bp@alien8.de
parent 0fdb6cc7
...@@ -412,18 +412,14 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in ...@@ -412,18 +412,14 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in
if (rc == -EIO && *fw_err == SNP_GUEST_REQ_INVALID_LEN) if (rc == -EIO && *fw_err == SNP_GUEST_REQ_INVALID_LEN)
return rc; return rc;
dev_alert(snp_dev->dev, dev_alert(snp_dev->dev, "Detected error from ASP request. rc: %d, fw_err: %llu\n", rc, *fw_err);
"Detected error from ASP request. rc: %d, fw_err: %llu\n",
rc, *fw_err);
snp_disable_vmpck(snp_dev); snp_disable_vmpck(snp_dev);
return rc; return rc;
} }
rc = verify_and_dec_payload(snp_dev, resp_buf, resp_sz); rc = verify_and_dec_payload(snp_dev, resp_buf, resp_sz);
if (rc) { if (rc) {
dev_alert(snp_dev->dev, dev_alert(snp_dev->dev, "Detected unexpected decode failure from ASP. rc: %d\n", rc);
"Detected unexpected decode failure from ASP. rc: %d\n",
rc);
snp_disable_vmpck(snp_dev); snp_disable_vmpck(snp_dev);
return rc; return rc;
} }
......
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