]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: ASoC: Fix warning from strict_strtoul()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 4 Jul 2008 15:01:14 +0000 (16:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 10 Jul 2008 07:32:21 +0000 (09:32 +0200)
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>
sound/soc/soc-dapm.c

index 7c2dd4ec8df1a89bd669ad433f00ae270a0ceb2c..91cbbefefb0a09af9a1226244f7937da04efbcea 100644 (file)
@@ -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;