Skip to content

Commit

Permalink
audio: Add some fall through comments
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
stweil authored and malc committed Feb 25, 2012
1 parent cdf8480 commit b4bd0b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions audio/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,17 +585,20 @@ static int audio_pcm_info_eq (struct audio_pcm_info *info, struct audsettings *a
switch (as->fmt) {
case AUD_FMT_S8:
sign = 1;
/* fall through */
case AUD_FMT_U8:
break;

case AUD_FMT_S16:
sign = 1;
/* fall through */
case AUD_FMT_U16:
bits = 16;
break;

case AUD_FMT_S32:
sign = 1;
/* fall through */
case AUD_FMT_U32:
bits = 32;
break;
Expand Down
2 changes: 1 addition & 1 deletion audio/esdaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int qesd_init_out (HWVoiceOut *hw, struct audsettings *as)
case AUD_FMT_S32:
case AUD_FMT_U32:
dolog ("Will use 16 instead of 32 bit samples\n");

/* fall through */
case AUD_FMT_S16:
case AUD_FMT_U16:
deffmt:
Expand Down

0 comments on commit b4bd0b1

Please sign in to comment.