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:
Родитель
950ac33dbe
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче