* [PATCH] hv_balloon: remove redundant assignment
@ 2021-05-02 16:17 Nigel Christian
2021-05-04 12:55 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: Nigel Christian @ 2021-05-02 16:17 UTC (permalink / raw)
To: K. Y. Srinivasan, Haiyang Zhang, Stephen Hemminger, Wei Liu,
Dexuan Cui
Cc: linux-hyperv, kernel-janitors
The variable region_start is being assigned a value that is
not read. Remove it.
Addresses-Coverity: ("Unused value")
Signed-off-by: Nigel Christian <nigel.l.christian@gmail.com>
---
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 58af84e30144..7f11ea07d698 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;
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hv_balloon: remove redundant assignment
2021-05-02 16:17 [PATCH] hv_balloon: remove redundant assignment Nigel Christian
@ 2021-05-04 12:55 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2021-05-04 12:55 UTC (permalink / raw)
To: Nigel Christian
Cc: K. Y. Srinivasan, Haiyang Zhang, Stephen Hemminger, Wei Liu,
Dexuan Cui, linux-hyperv, kernel-janitors
On Sun, May 02, 2021 at 11:17:52AM -0500, Nigel Christian wrote:
> The variable region_start is being assigned a value that is
> not read. Remove it.
>
> Addresses-Coverity: ("Unused value")
> Signed-off-by: Nigel Christian <nigel.l.christian@gmail.com>
This is fixed by a patch posted earlier, but thanks anyway.
Wei.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-04 12:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-02 16:17 [PATCH] hv_balloon: remove redundant assignment Nigel Christian
2021-05-04 12:55 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).