Skip to content

Commit 27d8149

Browse files
committed
hal_lib: whitespace fixes only, no code change
1 parent a82a4d4 commit 27d8149

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/hal/hal_lib.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2783,14 +2783,13 @@ static int init_hal_data(void)
27832783
{
27842784
/* has the block already been initialized? */
27852785
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-
}
2786+
/* yes, verify version code */
2787+
if (hal_data->version == HAL_VER) {
2788+
return 0;
2789+
} else {
2790+
rtapi_print_msg(RTAPI_MSG_ERR, "HAL: ERROR: version code mismatch\n");
2791+
return -1;
2792+
}
27942793
}
27952794
/* no, we need to init it, grab the mutex unconditionally */
27962795
rtapi_mutex_try(&(hal_data->mutex));

0 commit comments

Comments
 (0)