Commit fe4056a7 authored by Tom Burdick's avatar Tom Burdick Committed by Carles Cufi
Browse files

sensing: Code formatting fixups

Fixes a few small code formatting issues in sensor_mgmt.c adding
brackets where needed for an if and droping a line continuation slash
that failed one of the CI lints.

Signed-off-by: default avatarTom Burdick <thomas.burdick@intel.com>
parent 92bd7b51
Loading
Loading
Loading
Loading
+4 −3
Changes for subsys/sensing/sensor_mgmt.c: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -329,8 +329,9 @@ int open_sensor(struct sensing_sensor *sensor, struct sensing_connection **conn)
{
	struct sensing_connection *tmp_conn;

	if (sensor->state != SENSING_SENSOR_STATE_READY)
	if (sensor->state != SENSING_SENSOR_STATE_READY) {
		return -EINVAL;
	}

	/* create connection from sensor to application(client = NULL) */
	tmp_conn = malloc(sizeof(*tmp_conn));
@@ -497,5 +498,5 @@ int sensing_get_sensors(int *sensor_nums, const struct sensing_sensor_info **inf
K_THREAD_DEFINE(sensing_runtime, CONFIG_SENSING_RUNTIME_THREAD_STACK_SIZE, sensing_runtime_thread,
		&sensing_ctx, NULL, NULL, CONFIG_SENSING_RUNTIME_THREAD_PRIORITY, 0, 0);

DEVICE_DT_INST_DEFINE(0, sensing_init, NULL, &sensing_ctx, NULL,		\
		POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY, NULL);
DEVICE_DT_INST_DEFINE(0, sensing_init, NULL, &sensing_ctx, NULL, POST_KERNEL,
		      CONFIG_SENSOR_INIT_PRIORITY, NULL);