Skip to content

Commit 03b30cc

Browse files
Jiapeng Chongliuw
authored andcommitted
hv_balloon: Remove redundant assignment to region_start
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 <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Link: https://lore.kernel.org/r/1619691681-86256-1-git-send-email-jiapeng.chong@linux.alibaba.com Signed-off-by: Wei Liu <[email protected]>
1 parent 6efb943 commit 03b30cc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/hv/hv_balloon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,6 @@ static void hot_add_req(struct work_struct *dummy)
10101010
* that need to be hot-added while ensuring the alignment
10111011
* and size requirements of Linux as it relates to hot-add.
10121012
*/
1013-
region_start = pg_start;
10141013
region_size = (pfn_cnt / HA_CHUNK) * HA_CHUNK;
10151014
if (pfn_cnt % HA_CHUNK)
10161015
region_size += HA_CHUNK;

0 commit comments

Comments
 (0)