Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cdffeb5 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Alexandre Belloni
Browse files

rtc: max77686: Fix max77686_rtc_read_alarm() return value



The function is always returning zero even in case of failures since
the ret value was not propagated to the callers. Fix the error path.

Reported-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@samsung.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 92e963f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -235,7 +235,7 @@ static int max77686_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)


out:
out:
	mutex_unlock(&info->lock);
	mutex_unlock(&info->lock);
	return 0;
	return ret;
}
}


static int max77686_rtc_stop_alarm(struct max77686_rtc_info *info)
static int max77686_rtc_stop_alarm(struct max77686_rtc_info *info)