On 01/30/2014 12:59 PM, Dan Carpenter wrote: > We know "ret" is zero here so there is no need to check. > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Lars-Peter Clausen <lars@xxxxxxxxxx> Thanks. > > diff --git a/drivers/iio/imu/adis16400_core.c b/drivers/iio/imu/adis16400_core.c > index 368660dfe135..411586f49dae 100644 > --- a/drivers/iio/imu/adis16400_core.c > +++ b/drivers/iio/imu/adis16400_core.c > @@ -281,7 +281,7 @@ static ssize_t adis16400_write_frequency(struct device *dev, > st->variant->set_freq(st, val); > mutex_unlock(&indio_dev->mlock); > > - return ret ? ret : len; > + return len; > } > > /* Power down the device */ > -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html