]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rts5208: remove redundant retval status check
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Feb 2017 12:12:01 +0000 (12:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 12:01:36 +0000 (13:01 +0100)
commit767b6adeb2f6dfdd406882faacdea0c8b3b6f58e
treec380ff260d1dc2be43a62f51b3f3632877d55c8a
parente67d2c15ea465f99be2d447654d0bbe515c284a6
staging: rts5208: remove redundant retval status check

The retval status checks in the proceeding do loop return out
of function ms_read_attritbute_info if there is an error
condition,  thus we never reach the end of the loop with
retval failed status.  Therefore, the retval status check
at end of the do loop is redundant and can be removed.

Detected with CoverityScan, CID#143000 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/ms.c