ALSA: sb: Remove extra brackets
PATCH 1/1 ALSA: sb: Remove extra brackets
Remove extra brackets.
Signed-off-by Xu Wang <[email protected]>
--- sound/isa/sb/sb16_csp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/isa/sb/sb16_csp.c +1 -1
@@ -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
Quoted 4 lines · Xu Wang
Remove extra brackets.
Signed-off-by Xu Wang <[email protected]>
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@@ -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