summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Morin <guillaume@morinfr.org>2014-06-28 16:54:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-06-29 11:51:56 +0100
commit87a46909b36ad191352bfb7ac596d2c9c6901ef5 (patch)
tree04bb69e752e5a46eab499f23b2d66629848dd980
parentfc167f62483325aea9137e70e6773fe7ad1ca2ac (diff)
staging: iio: ad9850.c: code cleanup
checkpath.pl was complaining about value_mask: ERROR: Macros with complex values should be enclosed in parenthesis I fixed this by simply removing it since it's not used (as well as another macro). Got rid of the un-necessary error_ret label as well. Signed-off-by: Guillaume Morin <guillaume@morinfr.org> Reported-by: Michael Welling <mwelling@ieee.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/staging/iio/frequency/ad9850.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/iio/frequency/ad9850.c b/drivers/staging/iio/frequency/ad9850.c
index af877ff680e9..8727933cafcf 100644
--- a/drivers/staging/iio/frequency/ad9850.c
+++ b/drivers/staging/iio/frequency/ad9850.c
@@ -21,9 +21,6 @@
#define DRV_NAME "ad9850"
-#define value_mask (u16)0xf000
-#define addr_shift 12
-
/* Register format: 4 bits addr + 12 bits value */
struct ad9850_config {
u8 control[5];
@@ -50,9 +47,6 @@ static ssize_t ad9850_set_parameter(struct device *dev,
mutex_lock(&st->lock);
ret = spi_sync_transfer(st->sdev, &xfer, 1);
- if (ret)
- goto error_ret;
-error_ret:
mutex_unlock(&st->lock);
return ret ? ret : len;