Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1980583rwb; Sun, 18 Sep 2022 19:14:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qBN4IHMq7N7AV3FubVe/43zSBUoKs9INsoFc/l5eXwyMkRJMdMMrzoNQS52HpAu1W1MeC X-Received: by 2002:a17:906:5d0a:b0:780:3c42:990f with SMTP id g10-20020a1709065d0a00b007803c42990fmr11430521ejt.9.1663553653835; Sun, 18 Sep 2022 19:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663553653; cv=none; d=google.com; s=arc-20160816; b=MEHlodt4JL9uxvW541J8VQ+aUwSqHbK9+J7l8Ar7TdHXShQL0joLbvKFwJaZVSYAbZ 40yL9e3wNv9/LZH1Icp+g/zVyg/j180koXeylKga0eltnommwWeD8M7sGy+w6WWDa+CO btZoyKkPfS7JqRXm/YA6Hm/p9HVLn+OhNaWQ32YmGwRPW0tJYyCnyaCfLVvJZovIg05s ZS6YyAWiCTqoupQoH3Vp6SrAKh1UycETSDFGcaBkBwVzjnp55LOHYeg8OETJc2upjqP9 J9k4zSQP4leIm2HbaBl1i1v4z2Ar71Va8T5YpqlhJA/ZyWTH/Pmizi0e2/psuG0bsmwn WB/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rHuYhibQ8rbBTmUCThbeyj9vtspo6liWP2cY11u38o4=; b=x+kPRevM9o93Rcc8B9jwg983Zi/GMxFxT4DA8YLi1FGlk9jyEv1p6SrcUNJeECMRk4 h/K83ngCWyEjTsammW0PF2ciHz9jpP8EZd7Uo54PkmhmgAXp3/aksw6FOUs4zEOzxkHq C4SKTQJ0Xn4ujn6/V+cBbwg8ML5heqI6eVFls5+49p6lAmsZ1z3kS9Ed265YRe87az/Y ZCdWT2z0OOTmNhp4JavyXOgVorkF1fydJzWnciwGFS04d3lUGcxW2y9R11+ASS2kZS4A IJOxvmR1eZedXyUKugkeLQICwrxlIE1GKtZOHLD/Hwc7H6C3fNJXj2oCCFm3QlhGAdWv ChHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a056402430900b004468ec0d67csi9886324edc.565.2022.09.18.19.13.46; Sun, 18 Sep 2022 19:14:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbiISBvr (ORCPT + 99 others); Sun, 18 Sep 2022 21:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbiISBvp (ORCPT ); Sun, 18 Sep 2022 21:51:45 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 665EE17E19; Sun, 18 Sep 2022 18:51:44 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 3BA9B1E80D75; Mon, 19 Sep 2022 09:48:46 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RoFwQYVJJPbZ; Mon, 19 Sep 2022 09:48:43 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 702AA1E80CAB; Mon, 19 Sep 2022 09:48:42 +0800 (CST) From: Li zeming To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org Cc: linux-hyperv@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?asm-generic:=20Remove=20unnecessary=20=E2=80=98?= =?UTF-8?q?0=E2=80=99=20values=20from=20guest=5Fid?= Date: Mon, 19 Sep 2022 09:51:36 +0800 Message-Id: <20220919015136.3409-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The file variable is assigned guest_id, it does not need to be initialized. Signed-off-by: Li zeming --- 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