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

Commit 73ead485 authored by Mark Brown's avatar Mark Brown Committed by Jaroslav Kysela
Browse files

ALSA: ASoC: Fix warning from strict_strtoul()

parent 3f775987
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -827,7 +827,11 @@ static ssize_t dapm_pop_time_store(struct device *dev,
				   const char *buf, size_t count)
				   const char *buf, size_t count)


{
{
	if (strict_strtoul(buf, 10, &pop_time) < 0)
	unsigned long val;

	if (strict_strtoul(buf, 10, &val) >= 0)
		pop_time = val;
	else
		printk(KERN_ERR "Unable to parse pop_time setting\n");
		printk(KERN_ERR "Unable to parse pop_time setting\n");


	return count;
	return count;