Skip to content

Commit b4bd0b1

Browse files
stweilmalc
authored and
malc
committed
audio: Add some fall through comments
Static code analysers expect these comments for case statements without a break statement. Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: malc <[email protected]>
1 parent cdf8480 commit b4bd0b1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

audio/audio.c

+3
Original file line numberDiff line numberDiff line change
@@ -585,17 +585,20 @@ static int audio_pcm_info_eq (struct audio_pcm_info *info, struct audsettings *a
585585
switch (as->fmt) {
586586
case AUD_FMT_S8:
587587
sign = 1;
588+
/* fall through */
588589
case AUD_FMT_U8:
589590
break;
590591

591592
case AUD_FMT_S16:
592593
sign = 1;
594+
/* fall through */
593595
case AUD_FMT_U16:
594596
bits = 16;
595597
break;
596598

597599
case AUD_FMT_S32:
598600
sign = 1;
601+
/* fall through */
599602
case AUD_FMT_U32:
600603
bits = 32;
601604
break;

audio/esdaudio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int qesd_init_out (HWVoiceOut *hw, struct audsettings *as)
201201
case AUD_FMT_S32:
202202
case AUD_FMT_U32:
203203
dolog ("Will use 16 instead of 32 bit samples\n");
204-
204+
/* fall through */
205205
case AUD_FMT_S16:
206206
case AUD_FMT_U16:
207207
deffmt:

0 commit comments

Comments
 (0)