]> git.baikalelectronics.ru Git - kernel.git/commitdiff
virt/coco/sev-guest: Do some code style cleanups
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 15 Feb 2023 10:54:59 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:06 +0000 (13:34 +0100)
commit f2fb65224205cf7d9dcbedc6bdb40ced63e04a22 upstream.

Remove unnecessary linebreaks, make the code more compact.

No functional changes.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20230307192449.24732-7-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/coco/sev-guest/sev-guest.c

index 675fd0ee4f311bdb6ce340cdcbfe55977f567a46..4b738f2284b57247eb4c65abc8744ba059c0c93f 100644 (file)
@@ -414,18 +414,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)
                        return rc;
 
-               dev_alert(snp_dev->dev,
-                         "Detected error from ASP request. rc: %d, fw_err: %llu\n",
-                         rc, *fw_err);
+               dev_alert(snp_dev->dev, "Detected error from ASP request. rc: %d, fw_err: %llu\n", rc, *fw_err);
                snp_disable_vmpck(snp_dev);
                return rc;
        }
 
        rc = verify_and_dec_payload(snp_dev, resp_buf, resp_sz);
        if (rc) {
-               dev_alert(snp_dev->dev,
-                         "Detected unexpected decode failure from ASP. rc: %d\n",
-                         rc);
+               dev_alert(snp_dev->dev, "Detected unexpected decode failure from ASP. rc: %d\n", rc);
                snp_disable_vmpck(snp_dev);
                return rc;
        }