]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet/fcloop: remove some logically dead code performing redundant ret checks
authorColin Ian King <colin.king@canonical.com>
Fri, 9 Dec 2016 14:59:47 +0000 (14:59 +0000)
committerChristoph Hellwig <hch@lst.de>
Wed, 21 Dec 2016 10:34:28 +0000 (11:34 +0100)
commit858cac75a0c19b4b7ac5fd7ac1bda4261dc0d09c
tree0a86c8d427acdebfd70f198751f0334c0a9ba656
parent922d96de4a774ae21abb6482820aca5258652514
nvmet/fcloop: remove some logically dead code performing redundant ret checks

The check to see if ret is non-zero and return this rather than count
is redundant in two occassions.  It is redundant because prior to this
check, the return code ret is already checked for a non-zero error
return value and we return from the function at that point.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fcloop.c