mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-13 12:27:25 +00:00
Remove unreachable assignments
This is harmless, but we might as well remove the unreachable line. If we ever add a break to the loop and we don't think of changing the surrounding code, it would make more sense not to set exit_code to SUCCESS. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -359,8 +359,6 @@ int main(void)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
exit_code = MBEDTLS_EXIT_SUCCESS;
|
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
mbedtls_net_free(&client_fd);
|
mbedtls_net_free(&client_fd);
|
||||||
mbedtls_net_free(&listen_fd);
|
mbedtls_net_free(&listen_fd);
|
||||||
|
|||||||
@@ -938,8 +938,6 @@ accept:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exit_code = MBEDTLS_EXIT_SUCCESS;
|
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|
||||||
#ifdef MBEDTLS_ERROR_C
|
#ifdef MBEDTLS_ERROR_C
|
||||||
|
|||||||
Reference in New Issue
Block a user