Remove useless break statements
authorTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 15:08:07 +0000 (16:08 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 16:36:22 +0000 (17:36 +0100)
src/_copyright/_copyright.c
src/libcharon/sa/ikev1/tasks/isakmp_cert_post.c
src/libcharon/sa/ikev1/tasks/isakmp_cert_pre.c
src/libimcv/plugins/imv_attestation/imv_attestation_agent.c
src/libpttls/pt_tls_client.c
src/pool/pool.c
src/sw-collector/sw-collector.c

index 806f780..038e60e 100644 (file)
@@ -84,11 +84,9 @@ main(int argc, char *argv[])
                case 'h':       /* help */
                        printf("%s\n", usage);
                        exit(0);
-                       break;
                case 'v':       /* version */
                        printf("%s strongSwan "VERSION"\n", me);
                        exit(0);
-                       break;
                case '?':
                default:
                        errflg = 1;
index 7dbbdc9..b652d92 100644 (file)
@@ -287,7 +287,6 @@ METHOD(task_t, process_i, status_t,
                                default:
                                        return FAILED;
                        }
-                       break;
                }
                case AGGRESSIVE:
                {
index 58f856e..566bfe8 100644 (file)
@@ -605,7 +605,6 @@ METHOD(task_t, process_i, status_t,
                                default:
                                        return FAILED;
                        }
-                       break;
                }
                case AGGRESSIVE:
                {
index 89ba869..51bcdc4 100644 (file)
@@ -249,8 +249,6 @@ static TNC_Result receive_msg(private_imv_attestation_agent_t *this,
                                                                           os_name.len, os_name.ptr);
                                        }
                                        break;
-
-                                       break;
                                }
                                case IETF_ATTR_STRING_VERSION:
                                {
index 265a4a0..f86f13d 100644 (file)
@@ -231,7 +231,6 @@ static status_t do_sasl(private_pt_tls_client_t *this, sasl_mechanism_t *sasl)
                                                                reader->destroy(reader);
                                                                return FAILED;
                                                }
-                                               break;
                                        case PT_TLS_SASL_RESULT_MECH_FAILURE:
                                        case PT_TLS_SASL_RESULT_FAILURE:
                                                /* non-fatal failure, try again */
index b755365..ba1889d 100644 (file)
@@ -710,7 +710,6 @@ static enumerator_t *create_lease_query(char *filter, array_t **to_free)
                        default:
                                fprintf(stderr, "invalid filter string.\n");
                                exit(EXIT_FAILURE);
-                               break;
                }
        }
        query = db->query(db,
@@ -1142,7 +1141,6 @@ static void do_args(int argc, char *argv[])
                        default:
                                usage();
                                exit(EXIT_FAILURE);
-                               break;
                }
                break;
        }
index f8229a1..5453eeb 100644 (file)
@@ -27,7 +27,7 @@
 #include "sw_collector_history.h"
 #include "sw_collector_rest_api.h"
 #include "sw_collector_dpkg.h"
-#
+
 #include <library.h>
 #include <utils/debug.h>
 #include <utils/lexparser.h>
@@ -165,7 +165,6 @@ static collector_op_t do_args(int argc, char *argv[], bool *full_tags,
                        case 'h':
                                usage();
                                exit(SUCCESS);
-                               break;
                        case 'C':
                                op = COLLECTOR_OP_CHECK;
                                continue;