From b5faca4b59ab604cd3ff367683a96c330b78d25f Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Fri, 22 Aug 2014 08:35:00 +0100 Subject: io: accel: kxcjk1013: Remove redundant assignment data->range is already set by kxcjk1013_set_range. Signed-off-by: Daniel Baluta Signed-off-by: Jonathan Cameron --- drivers/iio/accel/kxcjk-1013.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/iio/accel') diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index 57c515bf0fd..ae7429385f9 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c @@ -239,9 +239,6 @@ static int kxcjk1013_chip_init(struct kxcjk1013_data *data) if (ret < 0) return ret; - data->range = KXCJK1013_RANGE_4G; - - ret = i2c_smbus_read_byte_data(data->client, KXCJK1013_REG_DATA_CTRL); if (ret < 0) { dev_err(&data->client->dev, "Error reading reg_data_ctrl\n"); -- cgit v1.2.3-70-g09d2