Thread (19 messages) 19 messages, 4 authors, 2021-12-04

Re: [PATCH V3 2/5] x86/hyper-v: Add hyperv Isolation VM check in the cc_platform_has()

From: Tianyu Lan <hidden>
Date: 2021-12-03 11:23:56
Also in: linux-arch, linux-iommu, linux-scsi, lkml, netdev, xen-devel

On 12/2/2021 10:39 PM, Wei Liu wrote:
quoted
+static bool hyperv_cc_platform_has(enum cc_attr attr)
+{
+#ifdef CONFIG_HYPERV
+	if (attr == CC_ATTR_GUEST_MEM_ENCRYPT)
+		return true;
+	else
+		return false;
This can be simplified as

	return attr == CC_ATTR_GUEST_MEM_ENCRYPT;


Wei.
Hi Wei:	
	Thanks for your review. Will update.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help