]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1302: remove redundant initializations of pointer bp
authorColin Ian King <colin.king@canonical.com>
Tue, 23 Jan 2018 10:17:27 +0000 (10:17 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 13 Feb 2018 20:46:06 +0000 (21:46 +0100)
commit4203e79bccc69a473cedde734b686167d291d7a1
treeb798bf4f7f1ce0a48209b2744fea0891cf79dfad
parent72cbfa06d1a660cfd81d9fe5cd53f79bfd4e33b1
rtc: ds1302: remove redundant initializations of pointer bp

Pointe bp is being initialized and this value is never read, it
is being updated to the same value later just before it is going to
be used. Remove the initialization as it is never read and keep
the setting of bp closer to the use of bp.

Cleans up clang warnings:
drivers/rtc/rtc-ds1302.c:115:7: warning: Value stored to 'bp' during
its initialization is never read
drivers/rtc/rtc-ds1302.c:46:7: warning: Value stored to 'bp' during
its initialization is never read

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