Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73327b4c authored by Peter Senna Tschudin's avatar Peter Senna Tschudin Committed by Jonathan Cameron
Browse files

drivers/staging/iio: Remove unnecessary semicolon

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/

)

// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p

@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
        cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>

Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent ddffeb8c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -345,7 +345,7 @@ static int adis16201_read_raw(struct iio_dev *indio_dev,
			break;
		default:
			return -EINVAL;
		};
		}
		mutex_lock(&indio_dev->mlock);
		addr = adis16201_addresses[chan->address][1];
		ret = adis16201_spi_read_reg_16(indio_dev, addr, &val16);
@@ -382,7 +382,7 @@ static int adis16201_write_raw(struct iio_dev *indio_dev,
			break;
		default:
			return -EINVAL;
		};
		}
		val16 = val & ((1 << bits) - 1);
		addr = adis16201_addresses[chan->address][1];
		return adis16201_spi_write_reg_16(indio_dev, addr, val16);
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ static int adis16204_write_raw(struct iio_dev *indio_dev,
			break;
		default:
			return -EINVAL;
		};
		}
		val16 = val & ((1 << bits) - 1);
		addr = adis16204_addresses[chan->address][1];
		return adis16204_spi_write_reg_16(indio_dev, addr, val16);
+2 −2
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ static int adis16209_write_raw(struct iio_dev *indio_dev,
			break;
		default:
			return -EINVAL;
		};
		}
		val16 = val & ((1 << bits) - 1);
		addr = adis16209_addresses[chan->address][1];
		return adis16209_spi_write_reg_16(indio_dev, addr, val16);
@@ -373,7 +373,7 @@ static int adis16209_read_raw(struct iio_dev *indio_dev,
			break;
		default:
			return -EINVAL;
		};
		}
		mutex_lock(&indio_dev->mlock);
		addr = adis16209_addresses[chan->address][1];
		ret = adis16209_spi_read_reg_16(indio_dev, addr, &val16);
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ static int kxsd9_read_raw(struct iio_dev *indio_dev,
		*val2 = kxsd9_micro_scales[ret & KXSD9_FS_MASK];
		ret = IIO_VAL_INT_PLUS_MICRO;
		break;
	};
	}

error_ret:
	return ret;
+1 −1
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ static int mxs_lradc_buffer_preenable(struct iio_dev *iio)
		writel(chan_value, lradc->base + LRADC_CH(ofs));
		enable |= 1 << ofs;
		ofs++;
	};
	}

	writel(LRADC_DELAY_TRIGGER_LRADCS_MASK | LRADC_DELAY_KICK,
		lradc->base + LRADC_DELAY(0) + STMP_OFFSET_REG_CLR);
Loading