devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Rowand <frowand.list@gmail.com>
To: Dan Carpenter <dan.carpenter@oracle.com>,
	Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] of: unittest: fix an error test in of_unittest_overlay_8()
Date: Wed, 7 Mar 2018 12:13:33 -0800	[thread overview]
Message-ID: <fecff8f1-fe1e-b69a-8cef-59e5f7629e1c@gmail.com> (raw)
In-Reply-To: <b493653d-3284-dd8b-1335-ff0409b3a556@gmail.com>

On 03/07/18 11:09, Frank Rowand wrote:
> On 03/06/18 22:18, Dan Carpenter wrote:
>> We changed this from of_overlay_apply() to overlay_data_apply().  The 
>> overlay_data_apply() function returns 1 on success and 0 on error so
>> the check for less than zero needs to be updated.
>>
>> Fixes: 39a751a4cb7e ("of: change overlay apply input data from unflattened to FDT")
>> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>>
>> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
>> index ca5e86dadae2..b233f170b2ec 100644
>> --- a/drivers/of/unittest.c
>> +++ b/drivers/of/unittest.c
>> @@ -1666,8 +1666,7 @@ static void __init of_unittest_overlay_8(void)
>>  
>>  		overlay_name = overlay_name_from_nr(overlay_nr + i);
>>  
>> -		ret = overlay_data_apply(overlay_name, &ovcs_id);
>> -		if (ret < 0)  {
>> +		if (!overlay_data_apply(overlay_name, &ovcs_id)) {
>>  			unittest(0, "could not apply overlay \"%s\"\n",
>>  					overlay_name);
>>  			return;
>>
> 
> Thank you.
> 
> Reviewed-by: Frank Rowand <frank.rowand@sony.com>

sony.com is valid, but that should have been:

Reviewed-by: Frank Rowand <frowand.list@gmail.com>

  reply	other threads:[~2018-03-07 20:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07  6:18 [PATCH] of: unittest: fix an error test in of_unittest_overlay_8() Dan Carpenter
2018-03-07 19:09 ` Frank Rowand
2018-03-07 20:13   ` Frank Rowand [this message]
2018-03-08  2:13 ` Rob Herring

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=fecff8f1-fe1e-b69a-8cef-59e5f7629e1c@gmail.com \
    --to=frowand.list@gmail.com \
    --cc=dan.carpenter@oracle.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=robh+dt@kernel.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).