[3.13.y-ckt stable] Patch "iio: adis16400: Remove unused variable" has been added to staging queue

Kamal Mostafa kamal at canonical.com
Tue Jul 7 22:16:09 UTC 2015


This is a note to let you know that I have just added a patch titled

    iio: adis16400: Remove unused variable

to the linux-3.13.y-queue branch of the 3.13.y-ckt extended stable tree 
which can be found at:

    http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.13.y-queue

This patch is scheduled to be released in version 3.13.11-ckt23.

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.13.y-ckt tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Kamal

------

>From c3ad0b3de02db2354d6838b59229b9fae7738eed Mon Sep 17 00:00:00 2001
From: Sachin Kamat <sachin.kamat at samsung.com>
Date: Fri, 7 Mar 2014 07:38:00 +0000
Subject: iio: adis16400: Remove unused variable

commit a9fbbbd7d2668232babc60ef77539dd82a33a89c upstream.

'rx' is not used in this function. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat at samsung.com>
Acked-by: Lars-Peter Clausen <lars at metafoo.de>
Signed-off-by: Jonathan Cameron <jic23 at kernel.org>
[ kamal: 3.13-stable prereq for 9df5603 iio: adis16400: Fix burst mode ]
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 drivers/iio/imu/adis16400_buffer.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/imu/adis16400_buffer.c b/drivers/iio/imu/adis16400_buffer.c
index f2cf829..6e727ff 100644
--- a/drivers/iio/imu/adis16400_buffer.c
+++ b/drivers/iio/imu/adis16400_buffer.c
@@ -18,7 +18,7 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev,
 {
 	struct adis16400_state *st = iio_priv(indio_dev);
 	struct adis *adis = &st->adis;
-	uint16_t *tx, *rx;
+	uint16_t *tx;

 	if (st->variant->flags & ADIS16400_NO_BURST)
 		return adis_update_scan_mode(indio_dev, scan_mask);
@@ -35,7 +35,6 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev,
 	if (!adis->buffer)
 		return -ENOMEM;

-	rx = adis->buffer;
 	tx = adis->buffer + indio_dev->scan_bytes;

 	tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD);
--
1.9.1





More information about the kernel-team mailing list