All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] mfd: remove unnecessary check
@ 2015-06-30 12:12 Maninder Singh
  2015-07-01  7:39 ` Lee Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Maninder Singh @ 2015-06-30 12:12 UTC (permalink / raw)
  To: sameo, lee.jones, linux-kernel; +Cc: pankaj.m, Maninder Singh

 o Making pdata NULL check to (!pdata) as coding statndard
	and all other checks in file.
 o Removing redundant check of pdata, because we already
	check for pdata, and also derefernced before this check

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
---
 drivers/mfd/t7l66xb.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
index c09fb5d..854b05f 100644
--- a/drivers/mfd/t7l66xb.c
+++ b/drivers/mfd/t7l66xb.c
@@ -318,7 +318,7 @@ static int t7l66xb_probe(struct platform_device *dev)
 	struct resource *iomem, *rscr;
 	int ret;
 
-	if (pdata == NULL)
+	if (!pdata)
 		return -EINVAL;
 
 	iomem = platform_get_resource(dev, IORESOURCE_MEM, 0);
@@ -371,7 +371,7 @@ static int t7l66xb_probe(struct platform_device *dev)
 
 	clk_prepare_enable(t7l66xb->clk48m);
 
-	if (pdata && pdata->enable)
+	if (pdata->enable)
 		pdata->enable(dev);
 
 	/* Mask all interrupts */
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] mfd: remove unnecessary check
  2015-06-30 12:12 [PATCH 1/1] mfd: remove unnecessary check Maninder Singh
@ 2015-07-01  7:39 ` Lee Jones
  2015-07-01  7:40   ` Lee Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Lee Jones @ 2015-07-01  7:39 UTC (permalink / raw)
  To: Maninder Singh; +Cc: sameo, linux-kernel, pankaj.m

On Tue, 30 Jun 2015, Maninder Singh wrote:

>  o Making pdata NULL check to (!pdata) as coding statndard
> 	and all other checks in file.
>  o Removing redundant check of pdata, because we already
> 	check for pdata, and also derefernced before this check
> 
> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> Reviewed-by: Vaneet Narang <v.narang@samsung.com>
> ---
>  drivers/mfd/t7l66xb.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, with a properly formatted subject line.

> diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
> index c09fb5d..854b05f 100644
> --- a/drivers/mfd/t7l66xb.c
> +++ b/drivers/mfd/t7l66xb.c
> @@ -318,7 +318,7 @@ static int t7l66xb_probe(struct platform_device *dev)
>  	struct resource *iomem, *rscr;
>  	int ret;
>  
> -	if (pdata == NULL)
> +	if (!pdata)
>  		return -EINVAL;
>  
>  	iomem = platform_get_resource(dev, IORESOURCE_MEM, 0);
> @@ -371,7 +371,7 @@ static int t7l66xb_probe(struct platform_device *dev)
>  
>  	clk_prepare_enable(t7l66xb->clk48m);
>  
> -	if (pdata && pdata->enable)
> +	if (pdata->enable)
>  		pdata->enable(dev);
>  
>  	/* Mask all interrupts */

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] mfd: remove unnecessary check
  2015-07-01  7:39 ` Lee Jones
@ 2015-07-01  7:40   ` Lee Jones
  2015-07-01  7:59     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 7+ messages in thread
From: Lee Jones @ 2015-07-01  7:40 UTC (permalink / raw)
  To: Maninder Singh; +Cc: sameo, linux-kernel, pankaj.m

On Wed, 01 Jul 2015, Lee Jones wrote:
> On Tue, 30 Jun 2015, Maninder Singh wrote:
> 
> >  o Making pdata NULL check to (!pdata) as coding statndard
> > 	and all other checks in file.
> >  o Removing redundant check of pdata, because we already
> > 	check for pdata, and also derefernced before this check
> > 
> > Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> > Reviewed-by: Vaneet Narang <v.narang@samsung.com>
> > ---
> >  drivers/mfd/t7l66xb.c |    4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Applied, with a properly formatted subject line.

Should have probably been more forthcomming with some advice.

Next time, please use `git log --oneline -- <subsystem>` to see what
the accepted format is.

> > diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
> > index c09fb5d..854b05f 100644
> > --- a/drivers/mfd/t7l66xb.c
> > +++ b/drivers/mfd/t7l66xb.c
> > @@ -318,7 +318,7 @@ static int t7l66xb_probe(struct platform_device *dev)
> >  	struct resource *iomem, *rscr;
> >  	int ret;
> >  
> > -	if (pdata == NULL)
> > +	if (!pdata)
> >  		return -EINVAL;
> >  
> >  	iomem = platform_get_resource(dev, IORESOURCE_MEM, 0);
> > @@ -371,7 +371,7 @@ static int t7l66xb_probe(struct platform_device *dev)
> >  
> >  	clk_prepare_enable(t7l66xb->clk48m);
> >  
> > -	if (pdata && pdata->enable)
> > +	if (pdata->enable)
> >  		pdata->enable(dev);
> >  
> >  	/* Mask all interrupts */
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] mfd: remove unnecessary check
  2015-07-01  7:40   ` Lee Jones
@ 2015-07-01  7:59     ` Krzysztof Kozlowski
  2015-07-01 14:08       ` Lee Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Kozlowski @ 2015-07-01  7:59 UTC (permalink / raw)
  To: Lee Jones; +Cc: Maninder Singh, sameo, linux-kernel, pankaj.m

2015-07-01 16:40 GMT+09:00 Lee Jones <lee.jones@linaro.org>:
> On Wed, 01 Jul 2015, Lee Jones wrote:
>> On Tue, 30 Jun 2015, Maninder Singh wrote:
>>
>> >  o Making pdata NULL check to (!pdata) as coding statndard
>> >     and all other checks in file.
>> >  o Removing redundant check of pdata, because we already
>> >     check for pdata, and also derefernced before this check
>> >
>> > Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
>> > Reviewed-by: Vaneet Narang <v.narang@samsung.com>
>> > ---
>> >  drivers/mfd/t7l66xb.c |    4 ++--
>> >  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> Applied, with a properly formatted subject line.
>
> Should have probably been more forthcomming with some advice.
>
> Next time, please use `git log --oneline -- <subsystem>` to see what
> the accepted format is.

... and a spell-check could be useful as well :). The reviewed-by tag
was not sent on LKML and the person (Vaneet Narang) was not even CC-ed
so I think it should be dropped.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] mfd: remove unnecessary check
  2015-07-01  7:59     ` Krzysztof Kozlowski
@ 2015-07-01 14:08       ` Lee Jones
  2015-07-02  0:14         ` Krzysztof Kozlowski
  0 siblings, 1 reply; 7+ messages in thread
From: Lee Jones @ 2015-07-01 14:08 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: Maninder Singh, sameo, linux-kernel, pankaj.m

On Wed, 01 Jul 2015, Krzysztof Kozlowski wrote:

> 2015-07-01 16:40 GMT+09:00 Lee Jones <lee.jones@linaro.org>:
> > On Wed, 01 Jul 2015, Lee Jones wrote:
> >> On Tue, 30 Jun 2015, Maninder Singh wrote:
> >>
> >> >  o Making pdata NULL check to (!pdata) as coding statndard
> >> >     and all other checks in file.
> >> >  o Removing redundant check of pdata, because we already
> >> >     check for pdata, and also derefernced before this check
> >> >
> >> > Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> >> > Reviewed-by: Vaneet Narang <v.narang@samsung.com>
> >> > ---
> >> >  drivers/mfd/t7l66xb.c |    4 ++--
> >> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >> Applied, with a properly formatted subject line.
> >
> > Should have probably been more forthcomming with some advice.
> >
> > Next time, please use `git log --oneline -- <subsystem>` to see what
> > the accepted format is.
> 
> ... and a spell-check could be useful as well :). The reviewed-by tag
> was not sent on LKML and the person (Vaneet Narang) was not even CC-ed
> so I think it should be dropped.

Fair points.  Patch dropped.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] mfd: remove unnecessary check
  2015-07-01 14:08       ` Lee Jones
@ 2015-07-02  0:14         ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2015-07-02  0:14 UTC (permalink / raw)
  To: Lee Jones
  Cc: Krzysztof Kozlowski, Maninder Singh, sameo, linux-kernel, pankaj.m

2015-07-01 23:08 GMT+09:00 Lee Jones <lee.jones@linaro.org>:
> On Wed, 01 Jul 2015, Krzysztof Kozlowski wrote:
>
>> 2015-07-01 16:40 GMT+09:00 Lee Jones <lee.jones@linaro.org>:
>> > On Wed, 01 Jul 2015, Lee Jones wrote:
>> >> On Tue, 30 Jun 2015, Maninder Singh wrote:
>> >>
>> >> >  o Making pdata NULL check to (!pdata) as coding statndard
>> >> >     and all other checks in file.
>> >> >  o Removing redundant check of pdata, because we already
>> >> >     check for pdata, and also derefernced before this check
>> >> >
>> >> > Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
>> >> > Reviewed-by: Vaneet Narang <v.narang@samsung.com>
>> >> > ---
>> >> >  drivers/mfd/t7l66xb.c |    4 ++--
>> >> >  1 file changed, 2 insertions(+), 2 deletions(-)
>> >>
>> >> Applied, with a properly formatted subject line.
>> >
>> > Should have probably been more forthcomming with some advice.
>> >
>> > Next time, please use `git log --oneline -- <subsystem>` to see what
>> > the accepted format is.
>>
>> ... and a spell-check could be useful as well :). The reviewed-by tag
>> was not sent on LKML and the person (Vaneet Narang) was not even CC-ed
>> so I think it should be dropped.
>
> Fair points.  Patch dropped.

I meant the reviewed-by tag should be dropped :) .

So now... Maninder Singh, could you resent the patch with this minor
issues fixed?

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/1] mfd: remove unnecessary check
@ 2015-07-02  3:14 Maninder Singh
  0 siblings, 0 replies; 7+ messages in thread
From: Maninder Singh @ 2015-07-02  3:14 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lee Jones; +Cc: sameo, linux-kernel, PANKAJ MISHRA

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=windows-1252, Size: 1435 bytes --]


Hello,

>>> >> >
>>> >> > Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
>>> >> > Reviewed-by: Vaneet Narang <v.narang@samsung.com>
>>> >> > ---
>>> >> >  drivers/mfd/t7l66xb.c |    4 ++--
>>> >> >  1 file changed, 2 insertions(+), 2 deletions(-)
>>> >>
>>> >> Applied, with a properly formatted subject line.
>>> >
>>> > Should have probably been more forthcomming with some advice.
>>> >
>>> > Next time, please use `git log --oneline -- <subsystem>` to see what
>>> > the accepted format is.

I did not know this thing.
I will keep that in mind from next time thanks.

>>> ... and a spell-check could be useful as well :). The reviewed-by tag
>>> was not sent on LKML and the person (Vaneet Narang) was not even CC-ed
>>> so I think it should be dropped.

Thanks for your feedback and noticing spell mistake "statndard" :-) and I applied reviewed-by tag in patch,
it is not from LKML, because if we reply any mail, our email client broke the mail thread,
Like my this reply will break down the mail chain from LKML.

>> Fair points.  Patch dropped.
>
>I meant the reviewed-by tag should be dropped :) .
>
>So now... Maninder Singh, could you resent the patch with this minor
>issues fixed?

Yes I am sending patch with these fixes. 

Thanks,
Maninder
.........

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-02  3:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-30 12:12 [PATCH 1/1] mfd: remove unnecessary check Maninder Singh
2015-07-01  7:39 ` Lee Jones
2015-07-01  7:40   ` Lee Jones
2015-07-01  7:59     ` Krzysztof Kozlowski
2015-07-01 14:08       ` Lee Jones
2015-07-02  0:14         ` Krzysztof Kozlowski
2015-07-02  3:14 Maninder Singh

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.