* [PATCH 1/3] ASoC: twl4030: Remove unused variable
@ 2014-07-01 4:29 Sachin Kamat
2014-07-01 4:29 ` [PATCH 2/3] ASoC: wm8350: " Sachin Kamat
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sachin Kamat @ 2014-07-01 4:29 UTC (permalink / raw)
To: alsa-devel; +Cc: peter.ujfalusi, broonie, spk.linux, lgirdwood
'status' is not used in the function. Remove it.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
---
sound/soc/codecs/twl4030.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 955df35c5ab6..cf404505e7d1 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -344,17 +344,16 @@ static void twl4030_init_chip(struct snd_soc_codec *codec)
static void twl4030_apll_enable(struct snd_soc_codec *codec, int enable)
{
struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec);
- int status = -1;
if (enable) {
twl4030->apll_enabled++;
if (twl4030->apll_enabled == 1)
- status = twl4030_audio_enable_resource(
+ twl4030_audio_enable_resource(
TWL4030_AUDIO_RES_APLL);
} else {
twl4030->apll_enabled--;
if (!twl4030->apll_enabled)
- status = twl4030_audio_disable_resource(
+ twl4030_audio_disable_resource(
TWL4030_AUDIO_RES_APLL);
}
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] ASoC: wm8350: Remove unused variable
2014-07-01 4:29 [PATCH 1/3] ASoC: twl4030: Remove unused variable Sachin Kamat
@ 2014-07-01 4:29 ` Sachin Kamat
2014-07-01 4:29 ` [PATCH 3/3] ASoC: wm8996: " Sachin Kamat
2014-07-03 18:46 ` [PATCH 1/3] ASoC: twl4030: " Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Sachin Kamat @ 2014-07-01 4:29 UTC (permalink / raw)
To: alsa-devel; +Cc: peter.ujfalusi, broonie, spk.linux, lgirdwood
'irq' is not used in the function. Remove it.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
---
sound/soc/codecs/wm8350.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index 392285edb595..d9e634c55e81 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -1341,21 +1341,18 @@ int wm8350_hp_jack_detect(struct snd_soc_codec *codec, enum wm8350_jack which,
{
struct wm8350_data *priv = snd_soc_codec_get_drvdata(codec);
struct wm8350 *wm8350 = priv->wm8350;
- int irq;
int ena;
switch (which) {
case WM8350_JDL:
priv->hpl.jack = jack;
priv->hpl.report = report;
- irq = WM8350_IRQ_CODEC_JCK_DET_L;
ena = WM8350_JDL_ENA;
break;
case WM8350_JDR:
priv->hpr.jack = jack;
priv->hpr.report = report;
- irq = WM8350_IRQ_CODEC_JCK_DET_R;
ena = WM8350_JDR_ENA;
break;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] ASoC: wm8996: Remove unused variable
2014-07-01 4:29 [PATCH 1/3] ASoC: twl4030: Remove unused variable Sachin Kamat
2014-07-01 4:29 ` [PATCH 2/3] ASoC: wm8350: " Sachin Kamat
@ 2014-07-01 4:29 ` Sachin Kamat
2014-07-03 18:46 ` [PATCH 1/3] ASoC: twl4030: " Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Sachin Kamat @ 2014-07-01 4:29 UTC (permalink / raw)
To: alsa-devel; +Cc: peter.ujfalusi, broonie, spk.linux, lgirdwood
'ret' is not used in the function. Remove it.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
---
sound/soc/codecs/wm8996.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c
index 9304a91b8403..f16ff4f56923 100644
--- a/sound/soc/codecs/wm8996.c
+++ b/sound/soc/codecs/wm8996.c
@@ -620,15 +620,12 @@ static int bg_event(struct snd_soc_dapm_widget *w,
static int cp_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
- int ret = 0;
-
switch (event) {
case SND_SOC_DAPM_POST_PMU:
msleep(5);
break;
default:
WARN(1, "Invalid event %d\n", event);
- ret = -EINVAL;
}
return 0;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] ASoC: twl4030: Remove unused variable
2014-07-01 4:29 [PATCH 1/3] ASoC: twl4030: Remove unused variable Sachin Kamat
2014-07-01 4:29 ` [PATCH 2/3] ASoC: wm8350: " Sachin Kamat
2014-07-01 4:29 ` [PATCH 3/3] ASoC: wm8996: " Sachin Kamat
@ 2014-07-03 18:46 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2014-07-03 18:46 UTC (permalink / raw)
To: Sachin Kamat; +Cc: peter.ujfalusi, alsa-devel, spk.linux, lgirdwood
[-- Attachment #1.1: Type: text/plain, Size: 211 bytes --]
On Tue, Jul 01, 2014 at 09:59:31AM +0530, Sachin Kamat wrote:
> 'status' is not used in the function. Remove it.
Applied all, thanks. Please remember to CC driver maintainers as well
as subsystem maintainers.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-03 18:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 4:29 [PATCH 1/3] ASoC: twl4030: Remove unused variable Sachin Kamat
2014-07-01 4:29 ` [PATCH 2/3] ASoC: wm8350: " Sachin Kamat
2014-07-01 4:29 ` [PATCH 3/3] ASoC: wm8996: " Sachin Kamat
2014-07-03 18:46 ` [PATCH 1/3] ASoC: twl4030: " Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.