Skip to contentSkip to conversation

staging: iio: Remove unused variable

PATCH New Cristina Moraru 1 participant 1 message Oct 25, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: Remove unused variable

Remove variable that is initialized but not used.

---
 drivers/staging/iio/light/isl29018.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/iio/light/isl29018.c +0 -2
index 73109dd..bbf7e35 100644
@@ -117,12 +117,10 @@ static int isl29018_set_integration_time(struct isl29018_chip *chip,
 {
 	int i, ret;
 	unsigned int int_time, new_int_time;
-	struct isl29018_scale new_scale;
 
 	for (i = 0; i < ARRAY_SIZE(isl29018_int_utimes[chip->type]); ++i) {
 		if (utime == isl29018_int_utimes[chip->type][i]) {
 			new_int_time = i;
-			new_scale = isl29018_scales[new_int_time][0];
 			break;
 		}
 	}
Signature · 1 line
1.9.1