* re: regmap: Separate regmap dev initialization
@ 2014-02-18 12:24 Dan Carpenter
2014-02-18 12:33 ` Michal Simek
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2014-02-18 12:24 UTC (permalink / raw)
To: kernel-janitors
Hello Michal Simek,
The patch 6cfec04bcc05: "regmap: Separate regmap dev initialization"
from Feb 10, 2014, leads to the following static checker warning:
drivers/base/regmap/regmap.c:765 regmap_init()
warn: add curly braces?
drivers/base/regmap/regmap.c
759 ret = regcache_init(map, config);
760 if (ret != 0)
761 goto err_range;
762
763 if (dev)
764 ret = regmap_attach_dev(dev, map, config);
765 if (ret != 0)
766 goto err_regcache;
Please add curly braces or adjust the indenting to not confuse the
static checkers.
767
768 return map;
regards,
dan carpenter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regmap: Separate regmap dev initialization
2014-02-18 12:24 regmap: Separate regmap dev initialization Dan Carpenter
@ 2014-02-18 12:33 ` Michal Simek
2014-02-18 12:59 ` Dan Carpenter
2014-02-18 13:10 ` Michal Simek
2 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2014-02-18 12:33 UTC (permalink / raw)
To: kernel-janitors
Hi Dan,
On 02/18/2014 01:24 PM, Dan Carpenter wrote:
> Hello Michal Simek,
>
> The patch 6cfec04bcc05: "regmap: Separate regmap dev initialization"
> from Feb 10, 2014, leads to the following static checker warning:
>
> drivers/base/regmap/regmap.c:765 regmap_init()
> warn: add curly braces?
>
> drivers/base/regmap/regmap.c
> 759 ret = regcache_init(map, config);
> 760 if (ret != 0)
> 761 goto err_range;
> 762
> 763 if (dev)
> 764 ret = regmap_attach_dev(dev, map, config);
> 765 if (ret != 0)
> 766 goto err_regcache;
>
> Please add curly braces or adjust the indenting to not confuse the
> static checkers.
I am aware about this. Mark has already applied RFC to any his branch
:-(. I can send v2 but it is up to Mark if he wants to fix it or not.
Thanks,
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regmap: Separate regmap dev initialization
2014-02-18 12:24 regmap: Separate regmap dev initialization Dan Carpenter
2014-02-18 12:33 ` Michal Simek
@ 2014-02-18 12:59 ` Dan Carpenter
2014-02-18 13:10 ` Michal Simek
2 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2014-02-18 12:59 UTC (permalink / raw)
To: kernel-janitors
On Tue, Feb 18, 2014 at 01:33:30PM +0100, Michal Simek wrote:
> Hi Dan,
>
> On 02/18/2014 01:24 PM, Dan Carpenter wrote:
> > Hello Michal Simek,
> >
> > The patch 6cfec04bcc05: "regmap: Separate regmap dev initialization"
> > from Feb 10, 2014, leads to the following static checker warning:
> >
> > drivers/base/regmap/regmap.c:765 regmap_init()
> > warn: add curly braces?
> >
> > drivers/base/regmap/regmap.c
> > 759 ret = regcache_init(map, config);
> > 760 if (ret != 0)
> > 761 goto err_range;
> > 762
> > 763 if (dev)
> > 764 ret = regmap_attach_dev(dev, map, config);
> > 765 if (ret != 0)
> > 766 goto err_regcache;
> >
> > Please add curly braces or adjust the indenting to not confuse the
> > static checkers.
>
> I am aware about this. Mark has already applied RFC to any his branch
> :-(. I can send v2 but it is up to Mark if he wants to fix it or not.
>
Oh, crap. Sorry, I reported this twice. I didn't mean to do that.
I normally grep my outbox to avoid this but I had a typo in my grep this
time.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regmap: Separate regmap dev initialization
2014-02-18 12:24 regmap: Separate regmap dev initialization Dan Carpenter
2014-02-18 12:33 ` Michal Simek
2014-02-18 12:59 ` Dan Carpenter
@ 2014-02-18 13:10 ` Michal Simek
2 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2014-02-18 13:10 UTC (permalink / raw)
To: kernel-janitors
On 02/18/2014 01:59 PM, Dan Carpenter wrote:
> On Tue, Feb 18, 2014 at 01:33:30PM +0100, Michal Simek wrote:
>> Hi Dan,
>>
>> On 02/18/2014 01:24 PM, Dan Carpenter wrote:
>>> Hello Michal Simek,
>>>
>>> The patch 6cfec04bcc05: "regmap: Separate regmap dev initialization"
>>> from Feb 10, 2014, leads to the following static checker warning:
>>>
>>> drivers/base/regmap/regmap.c:765 regmap_init()
>>> warn: add curly braces?
>>>
>>> drivers/base/regmap/regmap.c
>>> 759 ret = regcache_init(map, config);
>>> 760 if (ret != 0)
>>> 761 goto err_range;
>>> 762
>>> 763 if (dev)
>>> 764 ret = regmap_attach_dev(dev, map, config);
>>> 765 if (ret != 0)
>>> 766 goto err_regcache;
>>>
>>> Please add curly braces or adjust the indenting to not confuse the
>>> static checkers.
>>
>> I am aware about this. Mark has already applied RFC to any his branch
>> :-(. I can send v2 but it is up to Mark if he wants to fix it or not.
>>
>
> Oh, crap. Sorry, I reported this twice. I didn't mean to do that.
>
> I normally grep my outbox to avoid this but I had a typo in my grep this
> time.
I didn't expect that Mark apply RFC too but it was probably good enough
and we can fix this by one more patch. Feel free to submit it
against
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/nodev
Thanks,
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-18 13:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-18 12:24 regmap: Separate regmap dev initialization Dan Carpenter
2014-02-18 12:33 ` Michal Simek
2014-02-18 12:59 ` Dan Carpenter
2014-02-18 13:10 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.