]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
misc: mic: scif: remove redundant check on ret < 0
authorColin Ian King <colin.king@canonical.com>
Sat, 6 Oct 2018 21:56:58 +0000 (22:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Oct 2018 10:12:55 +0000 (12:12 +0200)
commite862faa968400206aae3bf8de0d4beb766498657
treeb978fe54cda46fbf5367f14990f76faaa50593e6
parenta23bbec205b9b9b5f75af1811fe89d0598104b88
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>
drivers/misc/mic/scif/scif_dma.c