Skip to contentSkip to conversation

hv_balloon: remove redundant assignment

PATCH In review Nigel Christian 2 participants 2 messages May 2, 2021 – May 4, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hv_balloon: remove redundant assignment

The variable region_start is being assigned a value that is not read. Remove it.

Addresses-Coverity: ("Unused value")

---
 drivers/hv/hv_balloon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/hv/hv_balloon.c +0 -1
index 58af84e30144..7f11ea07d698 100644
@@ -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;
Signature · 1 line
2.31.1
maintainer
#1 lore raw
Quoted 5 lines · Nigel Christian

The variable region_start is being assigned a value that is not read. Remove it.

Addresses-Coverity: ("Unused value")

This is fixed by a patch posted earlier, but thanks anyway.

Wei.