summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-09 13:00:50 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-06-20 22:29:50 +0200
commitfc3c335226a92f69aa01061e66b60ace88475dd3 (patch)
treed732a6b0d3abc1f3ae399a04fba5b3010ff6dd48 /drivers/rtc
parent950ac33dbe6ff656a623d862022f0762ec061ba7 (diff)
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/rtc')
-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);