From ce139d1d8d55828cdd55208d3b3e984225d785af Mon Sep 17 00:00:00 2001 From: Octavian Purdila Date: Wed, 23 Jul 2014 16:13:05 +0300 Subject: [PATCH] Remove a few unused variables Change-Id: I30b7acde908317e6368d1004b49ff516a9837079 Signed-off-by: Octavian Purdila --- compass-calibration.c | 2 +- control.c | 6 ------ enumeration.c | 4 ---- transform.c | 2 -- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/compass-calibration.c b/compass-calibration.c index cec4523..104f5e5 100644 --- a/compass-calibration.c +++ b/compass-calibration.c @@ -127,7 +127,7 @@ static void calc_evector(double mat[3][3], double eig, double vec[3][1]) static int ellipsoid_fit (mat_input_t m, double offset[3][1], double w_invert[3][3], double* bfield) { - int i,j; + int i; double h[DS_SIZE][9]; double w[DS_SIZE][1]; double h_trans[9][DS_SIZE]; diff --git a/control.c b/control.c index c43db86..2fc6c33 100644 --- a/control.c +++ b/control.c @@ -335,11 +335,9 @@ static void* acquisition_routine (void* param) */ int s = (int) param; - int report_fd; int num_fields; struct sensors_event_t data = {0}; int c; - int sampling_rate; int ret; struct timespec entry_time; struct timespec target_time; @@ -491,12 +489,10 @@ int sensor_activate(int s, int enabled) { char device_name[PATH_MAX]; char trigger_name[MAX_NAME_SIZE + 16]; - int c; struct epoll_event ev = {0}; int dev_fd; int ret; int dev_num = sensor_info[s].dev_num; - int i = sensor_info[s].catalog_index; int is_poll_sensor = !sensor_info[s].num_channels; /* If we want to activate gyro calibrated and gyro uncalibrated is activated @@ -761,7 +757,6 @@ int sensor_poll(struct sensors_event_t* data, int count) int i; int nfds; struct epoll_event ev[MAX_DEVICES]; - int64_t target_ts; int returned_events; int event_count; @@ -997,7 +992,6 @@ int sensor_set_delay(int s, int64_t ns) int allocate_control_data (void) { int i; - struct epoll_event ev = {0}; for (i=0; istoragebits - type->realbits; -- 2.11.0