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

Commit 74a557e2 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Check return value of strict_strtoul() in WM8962



strict_strtoul() has been made __must_check so do so.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent d6e116ba
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3500,8 +3500,11 @@ static ssize_t wm8962_beep_set(struct device *dev,
{
	struct wm8962_priv *wm8962 = dev_get_drvdata(dev);
	long int time;
	int ret;

	strict_strtol(buf, 10, &time);
	ret = strict_strtol(buf, 10, &time);
	if (ret != 0)
		return ret;

	input_event(wm8962->beep, EV_SND, SND_TONE, time);