]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mpfs: remove 'pending' variable from mpfs_rtc_wakeup_irq_handler()
authorTom Rix <trix@redhat.com>
Mon, 27 Jun 2022 20:59:43 +0000 (16:59 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 26 Jul 2022 14:31:15 +0000 (16:31 +0200)
commit09685920746c6908b8c2ccc771837d7b12c7d20a
treea1ce262a0666a3b23b7ff9a28f8b95436ded758f
parenta80983f2711357ffc7cd59727a8772d5bb6c87c3
rtc: mpfs: remove 'pending' variable from mpfs_rtc_wakeup_irq_handler()

cppcheck reports
[drivers/rtc/rtc-mpfs.c:219]: (style) Variable 'pending' is assigned a value that is never used.

The fetched CONTROL_REG stored in pending is unused and partially
duplicates the functionality of the later call to mpfs_rtc_clear().  This looks
like leftover development code, so remove pending.

Fixes: 9c40c1976735 ("rtc: Add driver for Microchip PolarFire SoC")
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220627205943.2075043-1-trix@redhat.com
drivers/rtc/rtc-mpfs.c