mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
misc: mic: scif: remove redundant check on ret < 0
The check for ret < 0 is redundant as any places prior to this point where ret is set to an error value the code will exit out of the loop to the error exit label 'err'. Remove this redundant dead code. Detected by CoverityScan, CID#1339528 ("Logically dead code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a23bbec205
commit
e862faa968
@ -1035,8 +1035,6 @@ scif_rma_list_dma_copy_unaligned(struct scif_copy_work *work,
|
||||
}
|
||||
dma_async_issue_pending(chan);
|
||||
}
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
offset += loop_len;
|
||||
temp += loop_len;
|
||||
temp_phys += loop_len;
|
||||
|
Loading…
Reference in New Issue
Block a user