[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220919015136.3409-1-zeming@nfschina.com>
Date: Mon, 19 Sep 2022 09:51:36 +0800
From: Li zeming <zeming@...china.com>
To: kys@...rosoft.com, haiyangz@...rosoft.com, wei.liu@...nel.org
Cc: linux-hyperv@...r.kernel.org, linux-arch@...r.kernel.org,
linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] asm-generic: Remove unnecessary ‘0’ values from guest_id
The file variable is assigned guest_id, it does not need to be initialized.
Signed-off-by: Li zeming <zeming@...china.com>
---
include/asm-generic/mshyperv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/asm-generic/mshyperv.h b/include/asm-generic/mshyperv.h
index c05d2ce9b6cd..cd5ce86c218a 100644
--- a/include/asm-generic/mshyperv.h
+++ b/include/asm-generic/mshyperv.h
@@ -108,7 +108,7 @@ static inline u64 hv_do_rep_hypercall(u16 code, u16 rep_count, u16 varhead_size,
static inline __u64 generate_guest_id(__u64 d_info1, __u64 kernel_version,
__u64 d_info2)
{
- __u64 guest_id = 0;
+ __u64 guest_id;
guest_id = (((__u64)HV_LINUX_VENDOR_ID) << 48);
guest_id |= (d_info1 << 48);
--
2.18.2
Powered by blists - more mailing lists