aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Belli <leandro.belli@arm.com>2020-09-28 15:56:17 +0100
committernicola-mazzucato-arm <42373140+nicola-mazzucato-arm@users.noreply.github.com>2020-10-26 16:19:06 +0000
commit8dd7c7077ff1d73679a95bcf6de5be90e2d4c727 (patch)
treec668eda89c3bca29cccd73f2982cee3ccf9a038d
parent61a7df422be8f5a0cc469900e4ca837085716bcd (diff)
mock_sensor: fix error 'status' variable undefined.
This change fixes an undefined variable error in the get_value function. Change-Id: Ib289094dcd945057505565e1179f6f4cf561de11 Signed-off-by: Leandro Belli <leandro.belli@arm.com>
-rw-r--r--module/mock_sensor/src/mod_mock_sensor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/mock_sensor/src/mod_mock_sensor.c b/module/mock_sensor/src/mod_mock_sensor.c
index d820bf93..ba69a8e1 100644
--- a/module/mock_sensor/src/mod_mock_sensor.c
+++ b/module/mock_sensor/src/mod_mock_sensor.c
@@ -43,7 +43,7 @@ static int get_value(fwk_id_t id, uint64_t *value)
{
unsigned int sensor_hal_idx;
const struct mod_mock_sensor_dev_config *config;
-
+ int status;
config = fwk_module_get_data(id);
sensor_hal_idx = fwk_id_get_element_idx(config->sensor_hal_id);