From: Jonathan Cameron <jic23@kernel.org>
To: Lars-Peter Clausen <lars@metafoo.de>,
Dan Carpenter <dan.carpenter@oracle.com>
Cc: Sachin Kamat <sachin.kamat@linaro.org>,
linux-iio@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] iio:imu:adis16400 remove an unneeded check
Date: Mon, 03 Feb 2014 21:44:01 +0000 [thread overview]
Message-ID: <52F00DA1.20104@kernel.org> (raw)
In-Reply-To: <52EB6F18.5070202@metafoo.de>
On 31/01/14 09:38, Lars-Peter Clausen wrote:
> 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@oracle.com>
>
> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Applied to the togreg branch of iio.git
Thanks,
>
> 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 */
>>
>
prev parent reply other threads:[~2014-02-03 21:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 11:59 [patch] iio:imu:adis16400 remove an unneeded check Dan Carpenter
2014-01-31 9:38 ` Lars-Peter Clausen
2014-02-03 21:44 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52F00DA1.20104@kernel.org \
--to=jic23@kernel.org \
--cc=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=sachin.kamat@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).