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)
commit041b67b389fc0118015e5adc62725d89127dcc71
treec380ff260d1dc2be43a62f51b3f3632877d55c8a
parent22eb36b8142b1f07f23c365e87a5dad6c9f233f1
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