Skip to content

Commit

Permalink
ibdiags: Add SWITCH_FALLTHROUGH
Browse files Browse the repository at this point in the history
Mark this case as deliberate fall through

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
jgunthorpe committed May 15, 2019
1 parent f15cc90 commit b1850c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ibdiags/src/ibportstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@

#include "ibdiag_common.h"

#include <util/compiler.h>

enum port_ops {
QUERY,
ENABLE,
Expand Down Expand Up @@ -578,6 +580,7 @@ int main(int argc, char **argv)
printf("Port is already in enable state\n");
goto close_port;
}
SWITCH_FALLTHROUGH;
case ENABLE:
case RESET:
/* Polling */
Expand Down

0 comments on commit b1850c1

Please sign in to comment.