]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: class: remove redundant assignment to variable err
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Apr 2020 11:04:11 +0000 (12:04 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 2 Apr 2020 16:47:30 +0000 (18:47 +0200)
commit7c4d2e6e98224388d369a2a4f9046a636d74d23e
tree2856cc14435cd148d73bfd88181371ffc747e2ad
parent6b22164efbf40e6507097049e2fe206f3402c3dc
rtc: class: remove redundant assignment to variable err

The variable err is being initialized with a value that is never read
and it is being updated later with a new value. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200402110411.508534-1-colin.king@canonical.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/class.c