aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-02-21 01:55:00 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-03 22:13:15 -0500
commit959b6250dbf8398e3c63544f771ff1682a09987e (patch)
tree51971a32f846ca06daf687589a5159f90e042aac
parent4ca74feb6ceb3031e8cf9ef88dedb3ebb984a59a (diff)
ASoC: max98090: Remove unnecessary braces
Braces are not required for single line statements. Silences the following checkpatch warnings: WARNING: braces {} are not necessary for single statement blocks. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rwxr-xr-xsound/soc/codecs/max98090.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index 89f83f8e56b2..ce0d36412c97 100755
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -1701,9 +1701,8 @@ static int max98090_dai_set_fmt(struct snd_soc_dai *codec_dai,
1701 * seen for the case of TDM mode. The remaining cases have 1701 * seen for the case of TDM mode. The remaining cases have
1702 * normal logic. 1702 * normal logic.
1703 */ 1703 */
1704 if (max98090->tdm_slots > 1) { 1704 if (max98090->tdm_slots > 1)
1705 regval ^= M98090_BCI_MASK; 1705 regval ^= M98090_BCI_MASK;
1706 }
1707 1706
1708 snd_soc_write(codec, 1707 snd_soc_write(codec,
1709 M98090_REG_INTERFACE_FORMAT, regval); 1708 M98090_REG_INTERFACE_FORMAT, regval);
@@ -2057,17 +2056,14 @@ static irqreturn_t max98090_interrupt(int irq, void *data)
2057 if (!active) 2056 if (!active)
2058 return IRQ_NONE; 2057 return IRQ_NONE;
2059 2058
2060 if (active & M98090_CLD_MASK) { 2059 if (active & M98090_CLD_MASK)
2061 dev_err(codec->dev, "M98090_CLD_MASK\n"); 2060 dev_err(codec->dev, "M98090_CLD_MASK\n");
2062 }
2063 2061
2064 if (active & M98090_SLD_MASK) { 2062 if (active & M98090_SLD_MASK)
2065 dev_dbg(codec->dev, "M98090_SLD_MASK\n"); 2063 dev_dbg(codec->dev, "M98090_SLD_MASK\n");
2066 }
2067 2064
2068 if (active & M98090_ULK_MASK) { 2065 if (active & M98090_ULK_MASK)
2069 dev_err(codec->dev, "M98090_ULK_MASK\n"); 2066 dev_err(codec->dev, "M98090_ULK_MASK\n");
2070 }
2071 2067
2072 if (active & M98090_JDET_MASK) { 2068 if (active & M98090_JDET_MASK) {
2073 dev_dbg(codec->dev, "M98090_JDET_MASK\n"); 2069 dev_dbg(codec->dev, "M98090_JDET_MASK\n");
@@ -2078,13 +2074,11 @@ static irqreturn_t max98090_interrupt(int irq, void *data)
2078 msecs_to_jiffies(100)); 2074 msecs_to_jiffies(100));
2079 } 2075 }
2080 2076
2081 if (active & M98090_DRCACT_MASK) { 2077 if (active & M98090_DRCACT_MASK)
2082 dev_dbg(codec->dev, "M98090_DRCACT_MASK\n"); 2078 dev_dbg(codec->dev, "M98090_DRCACT_MASK\n");
2083 }
2084 2079
2085 if (active & M98090_DRCCLP_MASK) { 2080 if (active & M98090_DRCCLP_MASK)
2086 dev_err(codec->dev, "M98090_DRCCLP_MASK\n"); 2081 dev_err(codec->dev, "M98090_DRCCLP_MASK\n");
2087 }
2088 2082
2089 return IRQ_HANDLED; 2083 return IRQ_HANDLED;
2090} 2084}