[PATCH rdma-core 01/20] ibdiags: Add SWITCH_FALLTHROUGH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

Mark this case as deliberate fall through

Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
---
 ibdiags/src/ibportstate.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ibdiags/src/ibportstate.c b/ibdiags/src/ibportstate.c
index cfe30655e67fd5..60afcb45a3ee07 100644
--- a/ibdiags/src/ibportstate.c
+++ b/ibdiags/src/ibportstate.c
@@ -48,6 +48,8 @@
 
 #include "ibdiag_common.h"
 
+#include <util/compiler.h>
+
 enum port_ops {
 	QUERY,
 	ENABLE,
@@ -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 */
-- 
2.21.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux