Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1322328lkv; Thu, 29 Apr 2021 03:22:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuxkwXl3XDprZvKOvg5AH/GPRg/88hEDXdTRfpP5OygehlXIBRQkuDMTZhJajCrHJ5G4QH X-Received: by 2002:a17:907:e87:: with SMTP id ho7mr33258384ejc.2.1619691767202; Thu, 29 Apr 2021 03:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619691767; cv=none; d=google.com; s=arc-20160816; b=QI+NKpfmV0A0wv16fIhmsYyZGRQwwAzyNL9xIfKUq82i3ryWQlBXYXE4pAD10VxPNt ADSq3+EKOIYnYh+Qx/AB+JJnaBmwhgf6CikhmTlVkOzSbPU7v6Vsm+ZWcKAS1PtYkXpq AYDxG6RTy4vq2ecu5WGYuO77wiTZ6W+vFtCuORzBR3QtnPM2AC8dnZt/RNoG1sC3pbT4 +wi0bPjlaHEEc9r/RGiQERihKpqxhrdNsDIFC163L4yA4hpRNL5SkBR+nhaqywlxlRPt mgasNYAJs/oECinLDY7UXMqY0Cz0tDVwKc1bnFgclnSCxaR7QZgaFrmdxnNiLVLsCnGB hAgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=mtHlIIEWVT9HB/9g8NUpPj1qMRVxTPoFURl3lhHtKXM=; b=jD2BWgMP3fZsXFuWx0hLATexmCpdsJHWXCpleC5cTwn9oz7fohj921Ppxr5PBWqyhW H6tcXD+hle1DbPHn7+KOU9uxHJuUdO2ZdHT87c/DjBKlpmo34eB/bW7NmfJFLcqdBLUN nNpkG49rUJGqsEmCVqxTtzDOjCjO4FAxtcGJBlMfkbldw+i4Ojkduvbt1zsbLVcpQFqd fGticcNgvncqQdr4HcwN3PgiEHkALIpuHZHirbNyKJ8MWWShY6C7HMI7LOW8w0JZMMQd dyzeJGnfMPu/pDy8OAOG/wuITDYGjmLlkCGAVIwE4HxZzyacDAqi8/PtUwwBfIxNO9cS W3iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si2273024edr.307.2021.04.29.03.22.23; Thu, 29 Apr 2021 03:22:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240271AbhD2KWS (ORCPT + 99 others); Thu, 29 Apr 2021 06:22:18 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:59306 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237774AbhD2KWR (ORCPT ); Thu, 29 Apr 2021 06:22:17 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R481e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UX9ogQY_1619691683; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UX9ogQY_1619691683) by smtp.aliyun-inc.com(127.0.0.1); Thu, 29 Apr 2021 18:21:29 +0800 From: Jiapeng Chong To: kys@microsoft.com Cc: haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] hv_balloon: Remove redundant assignment to region_start Date: Thu, 29 Apr 2021 18:21:21 +0800 Message-Id: <1619691681-86256-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable region_start is set to pg_start but this value is never read as it is overwritten later on, hence it is a redundant assignment and can be removed. Cleans up the following clang-analyzer warning: drivers/hv/hv_balloon.c:1013:3: warning: Value stored to 'region_start' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/hv/hv_balloon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 58af84e..7f11ea0 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -1010,7 +1010,6 @@ static void hot_add_req(struct work_struct *dummy) * that need to be hot-added while ensuring the alignment * and size requirements of Linux as it relates to hot-add. */ - region_start = pg_start; region_size = (pfn_cnt / HA_CHUNK) * HA_CHUNK; if (pfn_cnt % HA_CHUNK) region_size += HA_CHUNK; -- 1.8.3.1