projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f77598
)
ALSA: ASoC: Fix warning from strict_strtoul()
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Fri, 4 Jul 2008 15:01:14 +0000
(16:01 +0100)
committer
Jaroslav 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/soc-dapm.c
b/sound/soc/soc-dapm.c
index 7c2dd4ec8df1a89bd669ad433f00ae270a0ceb2c..91cbbefefb0a09af9a1226244f7937da04efbcea 100644
(file)
--- a/
sound/soc/soc-dapm.c
+++ b/
sound/soc/soc-dapm.c
@@
-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;