mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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
This commit is contained in:
committed by
Alexandre Belloni
parent
950ac33dbe
commit
fc3c335226
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user