mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-03 15:55:53 +00:00
pagemap: Logically dead code (DEADCODE)
CID 302711 (#1 of 1): Logically dead code (DEADCODE) Execution cannot reach the expression pr->io_complete inside this statement: if (ret == 0 && pr->io_comp.... Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
committed by
Andrei Vagin
parent
4e7e26b702
commit
c1ab1a19e1
@@ -447,7 +447,7 @@ static int maybe_read_page_img_streamer(struct page_read *pr, unsigned long vadd
|
||||
if (opts.auto_dedup)
|
||||
pr_warn_once("Can't dedup when streaming images\n");
|
||||
|
||||
if (ret == 0 && pr->io_complete)
|
||||
if (pr->io_complete)
|
||||
ret = pr->io_complete(pr, vaddr, nr);
|
||||
|
||||
pr->pi_off += len;
|
||||
|
Reference in New Issue
Block a user