summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-09 14:00:50 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-06-20 22:29:50 +0200
commitfc3c335226a92f69aa01061e66b60ace88475dd3 (patch)
treed732a6b0d3abc1f3ae399a04fba5b3010ff6dd48 /drivers
parentrtc: stm32: Fix unbalanced clk_disable_unprepare() on probe error path (diff)
downloadlinux-fc3c335226a92f69aa01061e66b60ace88475dd3.tar.xz
linux-fc3c335226a92f69aa01061e66b60ace88475dd3.zip
rtc: v3020: remove redundant initialization of variable retval
The variable retval is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20210609120050.185746-1-colin.king@canonical.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-v3020.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c
index d2da92187d56..4e8341c49f51 100644
--- a/drivers/rtc/rtc-v3020.c
+++ b/drivers/rtc/rtc-v3020.c
@@ -282,7 +282,7 @@ static int rtc_probe(struct platform_device *pdev)
{
struct v3020_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct v3020 *chip;
- int retval = -EBUSY;
+ int retval;
int i;
chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL);