mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Martin Kepplinger <martink@posteo.de>,
	Bijosh Thykkoottathil <bijosh.t@hotmail.com>,
	"knaack.h@gmx.de" <knaack.h@gmx.de>,
	"lars@metafoo.de" <lars@metafoo.de>,
	"pmeerw@pmeerw.net" <pmeerw@pmeerw.net>,
	"christoph.muellner@theobroma-systems.com" 
	<christoph.muellner@theobroma-systems.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1] drivers:iio:accel:mma8452: removed unwanted return statements
Date: Tue, 5 Jul 2016 21:04:56 +0100	[thread overview]
Message-ID: <73916037-eaba-a3b2-9445-b3fb572e97c8@kernel.org> (raw)
In-Reply-To: <c6fa0795-b316-2b65-955a-7b0acb92e027@posteo.de>

On 04/07/16 13:23, Martin Kepplinger wrote:
> Am 2016-07-04 um 13:15 schrieb Bijosh Thykkoottathil:
>> Removed unwanted return statements from the function
>> mma8452_set_freefall_mode.
> 
> You could've said "Don't unnecessarily save a return value.", but
> whatever :) Thanks for your review!
> 
>>
>> Signed-off-by: Bijosh Thykkoottathil <bijosh.t@hotmail.com>
> Reviewed-by: Martin Kepplinger <martink@posteo.de>
Hi Martin,

I've flipped that tag over to an Acked-by which is more
appropriate in this case as an in depth review as signalled
by Reviewed-by would be 'interesting' here ;)

I'm enjoying the slightly doom laden commit messages :)

Applied.

Jonathan
> 
>> ---
>>  drivers/iio/accel/mma8452.c | 6 +-----
>>  1 file changed, 1 insertion(+), 5 deletions(-)
>>
>> diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
>> index e225d3c..d4a6d44 100644
>> --- a/drivers/iio/accel/mma8452.c
>> +++ b/drivers/iio/accel/mma8452.c
>> @@ -518,11 +518,7 @@ static int mma8452_set_freefall_mode(struct mma8452_data *data, bool state)
>>  		val |= MMA8452_FF_MT_CFG_OAE;
>>  	}
>>  
>> -	val = mma8452_change_config(data, chip->ev_cfg, val);
>> -	if (val)
>> -		return val;
>> -
>> -	return 0;
>> +	return mma8452_change_config(data, chip->ev_cfg, val);
>>  }
>>  
>>  static int mma8452_set_hp_filter_frequency(struct mma8452_data *data,
>>
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2016-07-05 20:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <KL1PR04MB12050202C107FB05AAB8EAEA80380@KL1PR04MB1205.apcprd04.prod.outlook.com>
2016-07-04 12:23 ` Martin Kepplinger
2016-07-05 20:04   ` Jonathan Cameron [this message]
2016-07-06 14:14     ` Martin Kepplinger

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=73916037-eaba-a3b2-9445-b3fb572e97c8@kernel.org \
    --to=jic23@kernel.org \
    --cc=bijosh.t@hotmail.com \
    --cc=christoph.muellner@theobroma-systems.com \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martink@posteo.de \
    --cc=pmeerw@pmeerw.net \
    /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

all inboxes | Powered by JetHome®