Skip to content

Commit

Permalink
ALSA: ASoC: Fix warning from strict_strtoul()
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Mark Brown authored and Jaroslav Kysela committed Jul 10, 2008
1 parent 3f77598 commit 73ead48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73ead48

Please sign in to comment.