public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: codecs: Remove unneeded semicolon
@ 2023-02-13  1:05 Yang Li
  2023-02-13  6:58 ` Herve Codina
  2023-02-13 16:18 ` Mark Brown
  0 siblings, 2 replies; 7+ messages in thread
From: Yang Li @ 2023-02-13  1:05 UTC (permalink / raw)
  To: tiwai
  Cc: perex, herve.codina, lgirdwood, broonie, alsa-devel, linux-kernel,
	Yang Li, Abaci Robot

./sound/soc/codecs/peb2466.c:1851:2-3: Unneeded semicolon
./sound/soc/codecs/peb2466.c:1887:2-3: Unneeded semicolon

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4045
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 sound/soc/codecs/peb2466.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/peb2466.c b/sound/soc/codecs/peb2466.c
index 4640b1860312..5dec69be0acb 100644
--- a/sound/soc/codecs/peb2466.c
+++ b/sound/soc/codecs/peb2466.c
@@ -1848,7 +1848,7 @@ static int peb2466_chip_direction_input(struct gpio_chip *c, unsigned int offset
 	if (offset < 16) {
 		/* SOx_{0,1} */
 		return -EINVAL;
-	};
+	}
 
 	ret = peb2466_chip_gpio_offset_to_dir_regmask(offset, &xr_reg, &mask);
 	if (ret) {
@@ -1884,7 +1884,7 @@ static int peb2466_chip_direction_output(struct gpio_chip *c, unsigned int offse
 	if (offset < 16) {
 		/* SOx_{0,1} */
 		return 0;
-	};
+	}
 
 	ret = peb2466_chip_gpio_offset_to_dir_regmask(offset, &xr_reg, &mask);
 	if (ret) {
-- 
2.20.1.7.g153144c


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH -next] ASoC: codecs: Remove unneeded semicolon
@ 2024-01-24  0:44 Yang Li
  2024-01-25 13:39 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Yang Li @ 2024-01-24  0:44 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai; +Cc: linux-sound, linux-kernel, Yang Li

In the wcd939x codec driver, there are two instances where semicolons
are used after closing braces of a switch-case statement. These
semicolons are not required and do not adhere to the coding style
guidelines.

This patch removes the unnecessary semicolons at the end of the
switch-case statements which cleans up the code and ensures consistency
with the rest of the kernel coding style.

Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 sound/soc/codecs/wcd939x.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/wcd939x.c b/sound/soc/codecs/wcd939x.c
index 0ccc7b31d0c1..c49894aad8a5 100644
--- a/sound/soc/codecs/wcd939x.c
+++ b/sound/soc/codecs/wcd939x.c
@@ -970,7 +970,7 @@ static int wcd939x_codec_enable_dmic(struct snd_soc_dapm_widget *w,
 	default:
 		dev_err(component->dev, "%s: Invalid DMIC Selection\n", __func__);
 		return -EINVAL;
-	};
+	}
 
 	switch (event) {
 	case SND_SOC_DAPM_PRE_PMU:
@@ -1292,7 +1292,7 @@ static int wcd939x_micbias_control(struct snd_soc_component *component,
 		dev_err(component->dev, "%s: Invalid micbias number: %d\n",
 			__func__, micb_num);
 		return -EINVAL;
-	};
+	}
 
 	switch (req) {
 	case MICB_PULLUP_ENABLE:
-- 
2.20.1.7.g153144c


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH -next] ASoC: codecs: Remove unneeded semicolon
@ 2024-10-17  5:19 Yang Li
  2024-10-18 17:43 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Yang Li @ 2024-10-17  5:19 UTC (permalink / raw)
  To: perex, tiwai, lgirdwood, broonie
  Cc: linux-sound, linux-kernel, Yang Li, Abaci Robot

This patch removes an unneeded semicolon after a switch statement.

./sound/soc/codecs/ntp8835.c:280:2-3: Unneeded semicolon

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11404
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 sound/soc/codecs/ntp8835.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/ntp8835.c b/sound/soc/codecs/ntp8835.c
index 97056d8de2bb..800bda6b49dd 100644
--- a/sound/soc/codecs/ntp8835.c
+++ b/sound/soc/codecs/ntp8835.c
@@ -277,7 +277,7 @@ static int ntp8835_set_component_sysclk(struct snd_soc_component *component,
 		ntp8835->mclk_rate = 0;
 		dev_err(component->dev, "Unsupported MCLK value: %u", freq);
 		return -EINVAL;
-	};
+	}
 
 	return 0;
 }
-- 
2.32.0.3.g01195cf9f


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-18 17:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13  1:05 [PATCH -next] ASoC: codecs: Remove unneeded semicolon Yang Li
2023-02-13  6:58 ` Herve Codina
2023-02-13 16:18 ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2024-01-24  0:44 Yang Li
2024-01-25 13:39 ` Mark Brown
2024-10-17  5:19 Yang Li
2024-10-18 17:43 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox