rtc: max8925: remove redundant check on ret
authorColin Ian King <colin.king@canonical.com>
Wed, 7 Jun 2017 15:26:15 +0000 (16:26 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 30 Jul 2017 22:17:48 +0000 (00:17 +0200)
commit2f7f1b780dd60278819d396b67db8c41db6a3b1f
tree3712b88971a42cee5f5b93268d87a12ee1fddeca
parent1a37c34811f6d115063042a17211cd70ab560ddd
rtc: max8925: remove redundant check on ret

The check on ret < 0 is redundant as the goto destination is the
next statment.  Remove this redudant check and goto.

Detected by CoverityScan, CID#1268785 ("Identical code for different
branches")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-max8925.c