iio: imu: kmx61: Remove unnecessary REG_INS1 read
authorDaniel Baluta <daniel.baluta@intel.com>
Tue, 23 Dec 2014 13:22:31 +0000 (15:22 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Jan 2015 18:59:55 +0000 (18:59 +0000)
Useful in the debugging phase, not needed now.

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/kmx61.c

index 578e3dd944c9d3173f0824d97b9ac629f76f7105..1f7c3f1f4dfddb8d9a7b522a4502aa2d245b45e1 100644 (file)
@@ -1192,8 +1192,6 @@ ack_intr:
        if (ret < 0)
                dev_err(&data->client->dev, "Error reading reg_inl\n");
 
-       ret = i2c_smbus_read_byte_data(data->client, KMX61_REG_INS1);
-
        return IRQ_HANDLED;
 }