The open source OpenXR runtime

t/common: Clean up comments and variable names

+9 -11
+9 -9
src/xrt/targets/common/target_builder_north_star.c
··· 356 356 .gt = slam_sinks->gt, 357 357 }; 358 358 359 - struct xrt_slam_sinks dummy_slam_sinks = {0}; 360 - dummy_slam_sinks.imu = entry_sinks.imu; 359 + struct xrt_slam_sinks unused_slam_sinks = {0}; 360 + unused_slam_sinks.imu = entry_sinks.imu; 361 361 362 - u_sink_force_genlock_create( // 363 - xfctx, // 364 - entry_sinks.cams[0], // 365 - entry_sinks.cams[1], // 366 - &dummy_slam_sinks.cams[0], // 367 - &dummy_slam_sinks.cams[1]); // 362 + u_sink_force_genlock_create( // 363 + xfctx, // 364 + entry_sinks.cams[0], // 365 + entry_sinks.cams[1], // 366 + &unused_slam_sinks.cams[0], // 367 + &unused_slam_sinks.cams[1]); // 368 368 369 - xrt_fs_slam_stream_start(the_fs, &dummy_slam_sinks); 369 + xrt_fs_slam_stream_start(the_fs, &unused_slam_sinks); 370 370 371 371 return XRT_SUCCESS; 372 372 }
-2
src/xrt/targets/common/target_builder_steamvr.c
··· 106 106 struct xrt_system_devices *xsysd = NULL; 107 107 xrt_result_t result = XRT_SUCCESS; 108 108 109 - // Sanity checking. 110 109 if (out_xsysd == NULL || *out_xsysd != NULL) { 111 110 LH_ERROR("Invalid output system pointer"); 112 111 return XRT_ERROR_DEVICE_CREATION_FAILED; ··· 127 126 // Look for regular devices. 128 127 u_device_assign_xdev_roles(xsysd->xdevs, xsysd->xdev_count, &head_idx, &left_idx, &right_idx); 129 128 130 - // Sanity check. 131 129 if (head_idx < 0) { 132 130 LH_ERROR("Unable to find HMD"); 133 131 result = XRT_ERROR_DEVICE_CREATION_FAILED;