We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a82a4d4 commit 27d8149Copy full SHA for 27d8149
1 file changed
src/hal/hal_lib.c
@@ -2783,14 +2783,13 @@ static int init_hal_data(void)
2783
{
2784
/* has the block already been initialized? */
2785
if (hal_data->version != 0) {
2786
- /* yes, verify version code */
2787
- if (hal_data->version == HAL_VER) {
2788
- return 0;
2789
- } else {
2790
- rtapi_print_msg(RTAPI_MSG_ERR,
2791
- "HAL: ERROR: version code mismatch\n");
2792
- return -1;
2793
- }
+ /* yes, verify version code */
+ if (hal_data->version == HAL_VER) {
+ return 0;
+ } else {
+ rtapi_print_msg(RTAPI_MSG_ERR, "HAL: ERROR: version code mismatch\n");
+ return -1;
+ }
2794
}
2795
/* no, we need to init it, grab the mutex unconditionally */
2796
rtapi_mutex_try(&(hal_data->mutex));
0 commit comments