Skip to contentSkip to conversation

ALSA: sb: Remove extra brackets

PATCH In review Xu Wang 2 participants 2 messages Mar 12, 2021 Sound

lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 ALSA: sb: Remove extra brackets

Remove extra brackets.

---
 sound/isa/sb/sb16_csp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/sb/sb16_csp.c +1 -1
index 8635a2b6b36b..2c292bf0f5ae 100644
@@ -769,7 +769,7 @@ static int snd_sb_csp_autoload(struct snd_sb_csp * p, snd_pcm_format_t pcm_sfmt,
 
 			p->running = 0;				/* clear autoloaded flag */
 			p->mode = 0;
-			return (err);
+			return err;
 		} else {
 			p->running = SNDRV_SB_CSP_ST_AUTO;	/* set autoloaded flag */
 			p->acc_width = SNDRV_SB_CSP_SAMPLE_16BIT;	/* only 16 bit data */
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Xu Wang

Remove extra brackets.

Thanks for the patch. But this kind of change alone makes little benefit, as it doesn't improve the readability significantly. So I'd take such a change only if it's really needed, e.g. if it's a preliminary work for the further real fixes.

Takashi

Quoted 20 lines
---
 sound/isa/sb/sb16_csp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/sb/sb16_csp.c +1 -1
index 8635a2b6b36b..2c292bf0f5ae 100644
@@ -769,7 +769,7 @@ static int snd_sb_csp_autoload(struct snd_sb_csp * p, snd_pcm_format_t pcm_sfmt,
 
 			p->running = 0;				/* clear autoloaded flag */
 			p->mode = 0;
-			return (err);
+			return err;
 		} else {
 			p->running = SNDRV_SB_CSP_ST_AUTO;	/* set autoloaded flag */
 			p->acc_width = SNDRV_SB_CSP_SAMPLE_16BIT;	/* only 16 bit data */
Signature · 1 line
2.17.1