Remove useless break statements

This commit is contained in:
Tobias Brunner
2018-11-12 17:36:22 +01:00
parent ff3f09af45
commit de80946f6a
7 changed files with 1 additions and 11 deletions
-2
View File
@@ -84,11 +84,9 @@ main(int argc, char *argv[])
case 'h': /* help */ case 'h': /* help */
printf("%s\n", usage); printf("%s\n", usage);
exit(0); exit(0);
break;
case 'v': /* version */ case 'v': /* version */
printf("%s strongSwan "VERSION"\n", me); printf("%s strongSwan "VERSION"\n", me);
exit(0); exit(0);
break;
case '?': case '?':
default: default:
errflg = 1; errflg = 1;
@@ -287,7 +287,6 @@ METHOD(task_t, process_i, status_t,
default: default:
return FAILED; return FAILED;
} }
break;
} }
case AGGRESSIVE: case AGGRESSIVE:
{ {
@@ -605,7 +605,6 @@ METHOD(task_t, process_i, status_t,
default: default:
return FAILED; return FAILED;
} }
break;
} }
case AGGRESSIVE: case AGGRESSIVE:
{ {
@@ -249,8 +249,6 @@ static TNC_Result receive_msg(private_imv_attestation_agent_t *this,
os_name.len, os_name.ptr); os_name.len, os_name.ptr);
} }
break; break;
break;
} }
case IETF_ATTR_STRING_VERSION: case IETF_ATTR_STRING_VERSION:
{ {
-1
View File
@@ -231,7 +231,6 @@ static status_t do_sasl(private_pt_tls_client_t *this, sasl_mechanism_t *sasl)
reader->destroy(reader); reader->destroy(reader);
return FAILED; return FAILED;
} }
break;
case PT_TLS_SASL_RESULT_MECH_FAILURE: case PT_TLS_SASL_RESULT_MECH_FAILURE:
case PT_TLS_SASL_RESULT_FAILURE: case PT_TLS_SASL_RESULT_FAILURE:
/* non-fatal failure, try again */ /* non-fatal failure, try again */
-2
View File
@@ -710,7 +710,6 @@ static enumerator_t *create_lease_query(char *filter, array_t **to_free)
default: default:
fprintf(stderr, "invalid filter string.\n"); fprintf(stderr, "invalid filter string.\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
break;
} }
} }
query = db->query(db, query = db->query(db,
@@ -1142,7 +1141,6 @@ static void do_args(int argc, char *argv[])
default: default:
usage(); usage();
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
break;
} }
break; break;
} }
+1 -2
View File
@@ -27,7 +27,7 @@
#include "sw_collector_history.h" #include "sw_collector_history.h"
#include "sw_collector_rest_api.h" #include "sw_collector_rest_api.h"
#include "sw_collector_dpkg.h" #include "sw_collector_dpkg.h"
#
#include <library.h> #include <library.h>
#include <utils/debug.h> #include <utils/debug.h>
#include <utils/lexparser.h> #include <utils/lexparser.h>
@@ -165,7 +165,6 @@ static collector_op_t do_args(int argc, char *argv[], bool *full_tags,
case 'h': case 'h':
usage(); usage();
exit(SUCCESS); exit(SUCCESS);
break;
case 'C': case 'C':
op = COLLECTOR_OP_CHECK; op = COLLECTOR_OP_CHECK;
continue; continue;