xen/gntdev: remove redundant non-zero check on ret
authorColin Ian King <colin.king@canonical.com>
Mon, 11 Nov 2019 12:20:09 +0000 (12:20 +0000)
committerJuergen Gross <jgross@suse.com>
Mon, 2 Dec 2019 06:27:43 +0000 (07:27 +0100)
commitd41b26d81a83e04500e926fbab746ae87c20bb0e
tree0b32a4e39cf8d6f16e2ea3dd88251d447def8d21
parent348be43384e6bcd5e9da7ff5f1680d49f65c488d
xen/gntdev: remove redundant non-zero check on ret

The non-zero check on ret is always going to be false because
ret was initialized as zero and the only place it is set to
non-zero contains a return path before the non-zero check. Hence
the check is redundant and can be removed.

[ jgross@suse.com: limit scope of ret ]

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/gntdev.c