Skip to content

Commit

Permalink
pagemap: Logically dead code (DEADCODE)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
adrianreber authored and avagin committed Oct 20, 2020
1 parent 4e7e26b commit c1ab1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion criu/pagemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c1ab1a1

Please sign in to comment.