io: accel: kxcjk1013: Remove redundant assignment
data->range is already set by kxcjk1013_set_range. Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
ca45d02db8
commit
b5faca4b59
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue