提交 73ead485 编写于 作者: M Mark Brown 提交者: Jaroslav Kysela

ALSA: ASoC: Fix warning from strict_strtoul()

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@perex.cz>
上级 3f775987
......@@ -827,7 +827,11 @@ static ssize_t dapm_pop_time_store(struct device *dev,
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");
return count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册