linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tps65090-charger: Delete an error message for a failed memory allocation in two functions
@ 2017-12-16 18:43 SF Markus Elfring
  2017-12-16 18:53 ` Joe Perches
  0 siblings, 1 reply; 9+ messages in thread
From: SF Markus Elfring @ 2017-12-16 18:43 UTC (permalink / raw)
  To: linux-pm, Sebastian Reichel; +Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 16 Dec 2017 19:32:02 +0100

Omit an extra message for a memory allocation failure in these functions.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/power/supply/tps65090-charger.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/power/supply/tps65090-charger.c b/drivers/power/supply/tps65090-charger.c
index 1b4b5e09538e..43c44d2eaeca 100644
--- a/drivers/power/supply/tps65090-charger.c
+++ b/drivers/power/supply/tps65090-charger.c
@@ -202,10 +202,8 @@ static struct tps65090_platform_data *
 	unsigned int prop;
 
 	pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
-	if (!pdata) {
-		dev_err(&pdev->dev, "Memory alloc for tps65090_pdata failed\n");
+	if (!pdata)
 		return NULL;
-	}
 
 	prop = of_property_read_bool(np, "ti,enable-low-current-chrg");
 	pdata->enable_low_current_chrg = prop;
@@ -257,10 +255,8 @@ static int tps65090_charger_probe(struct platform_device *pdev)
 	}
 
 	cdata = devm_kzalloc(&pdev->dev, sizeof(*cdata), GFP_KERNEL);
-	if (!cdata) {
-		dev_err(&pdev->dev, "failed to allocate memory status\n");
+	if (!cdata)
 		return -ENOMEM;
-	}
 
 	platform_set_drvdata(pdev, cdata);
 
-- 
2.15.1

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

* Re: [PATCH] tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-16 18:43 [PATCH] tps65090-charger: Delete an error message for a failed memory allocation in two functions SF Markus Elfring
@ 2017-12-16 18:53 ` Joe Perches
  2017-12-16 20:30   ` SF Markus Elfring
  0 siblings, 1 reply; 9+ messages in thread
From: Joe Perches @ 2017-12-16 18:53 UTC (permalink / raw)
  To: SF Markus Elfring, linux-pm, Sebastian Reichel; +Cc: LKML, kernel-janitors

On Sat, 2017-12-16 at 19:43 +0100, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 16 Dec 2017 19:32:02 +0100
> 
> Omit an extra message for a memory allocation failure in these functions.

Because???

Fix your commit message.

Say _WHY_ should this be applied.

Otherwise, just stop sending these patches.

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

* Re: tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-16 18:53 ` Joe Perches
@ 2017-12-16 20:30   ` SF Markus Elfring
  2017-12-16 20:36     ` Julia Lawall
  2017-12-16 20:40     ` Joe Perches
  0 siblings, 2 replies; 9+ messages in thread
From: SF Markus Elfring @ 2017-12-16 20:30 UTC (permalink / raw)
  To: Joe Perches, linux-pm; +Cc: Sebastian Reichel, LKML, kernel-janitors

>> Omit an extra message for a memory allocation failure in these functions.
> 
> Because???
> 
> Fix your commit message.
> 
> Say _WHY_ should this be applied.

I am still waiting for possibilities to improve also the corresponding
reference documentation somehow as you know it already.

Regards,
Markus

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

* Re: tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-16 20:30   ` SF Markus Elfring
@ 2017-12-16 20:36     ` Julia Lawall
  2017-12-16 20:47       ` SF Markus Elfring
  2017-12-16 20:40     ` Joe Perches
  1 sibling, 1 reply; 9+ messages in thread
From: Julia Lawall @ 2017-12-16 20:36 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: Joe Perches, linux-pm, Sebastian Reichel, LKML, kernel-janitors



On Sat, 16 Dec 2017, SF Markus Elfring wrote:

> >> Omit an extra message for a memory allocation failure in these functions.
> >
> > Because???
> >
> > Fix your commit message.
> >
> > Say _WHY_ should this be applied.
>
> I am still waiting for possibilities to improve also the corresponding
> reference documentation somehow as you know it already.

If you require someone else to update the documentation to be able to
explain why the patch is useful, then it would seem that you do not know
why the patch is useful, and thus should not submit it.

julia


>
> Regards,
> Markus
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-16 20:30   ` SF Markus Elfring
  2017-12-16 20:36     ` Julia Lawall
@ 2017-12-16 20:40     ` Joe Perches
  2017-12-16 20:52       ` SF Markus Elfring
  1 sibling, 1 reply; 9+ messages in thread
From: Joe Perches @ 2017-12-16 20:40 UTC (permalink / raw)
  To: SF Markus Elfring, linux-pm; +Cc: Sebastian Reichel, LKML, kernel-janitors

On Sat, 2017-12-16 at 21:30 +0100, SF Markus Elfring wrote:
> > > Omit an extra message for a memory allocation failure in these functions.
> > 
> > Because???
> > 
> > Fix your commit message.
> > 
> > Say _WHY_ should this be applied.
> 
> I am still waiting for possibilities to improve also the corresponding
> reference documentation somehow as you know it already.

Don't submit any more patches until you do
have this resolved.

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

* Re: tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-16 20:36     ` Julia Lawall
@ 2017-12-16 20:47       ` SF Markus Elfring
  2017-12-18 17:24         ` Sebastian Reichel
  0 siblings, 1 reply; 9+ messages in thread
From: SF Markus Elfring @ 2017-12-16 20:47 UTC (permalink / raw)
  To: Julia Lawall, linux-pm
  Cc: Joe Perches, Sebastian Reichel, LKML, kernel-janitors

>> I am still waiting for possibilities to improve also the corresponding
>> reference documentation somehow as you know it already.
> 
> If you require someone else to update the documentation to be able to
> explain why the patch is useful,

My approach is to refer to the Linux allocation failure report.


> then it would seem that you do not know why the patch is useful,
> and thus should not submit it.

We tried to clarify other explanation approaches a few times.

But it seems that we are stuck with specific software aspects.
How would you like to see remaining open issues to be resolved there anyhow?

Regards,
Markus

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

* Re: tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-16 20:40     ` Joe Perches
@ 2017-12-16 20:52       ` SF Markus Elfring
  0 siblings, 0 replies; 9+ messages in thread
From: SF Markus Elfring @ 2017-12-16 20:52 UTC (permalink / raw)
  To: Joe Perches, linux-pm; +Cc: Sebastian Reichel, LKML, kernel-janitors

>> I am still waiting for possibilities to improve also the corresponding
>> reference documentation somehow as you know it already.
> 
> Don't submit any more patches until you do have this resolved.

I imagine that some contributors will need to work better together
for this task.

It seems that I did not get any more constructive answers for my questions
in this direction so far.

Regards,
Markus

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

* Re: tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-16 20:47       ` SF Markus Elfring
@ 2017-12-18 17:24         ` Sebastian Reichel
  2017-12-18 17:32           ` SF Markus Elfring
  0 siblings, 1 reply; 9+ messages in thread
From: Sebastian Reichel @ 2017-12-18 17:24 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: Julia Lawall, linux-pm, Joe Perches, LKML, kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

Hi,

On Sat, Dec 16, 2017 at 09:47:34PM +0100, SF Markus Elfring wrote:
> >> I am still waiting for possibilities to improve also the corresponding
> >> reference documentation somehow as you know it already.
> > 
> > If you require someone else to update the documentation to be able to
> > explain why the patch is useful,
> 
> My approach is to refer to the Linux allocation failure report.
> 
> 
> > then it would seem that you do not know why the patch is useful,
> > and thus should not submit it.
> 
> We tried to clarify other explanation approaches a few times.
> 
> But it seems that we are stuck with specific software aspects.
> How would you like to see remaining open issues to be resolved
> there anyhow?

FYI: I will drop this and (without any further notice) all future
patches from you, that do no follow the documented process in
Documentation/process/.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: tps65090-charger: Delete an error message for a failed memory allocation in two functions
  2017-12-18 17:24         ` Sebastian Reichel
@ 2017-12-18 17:32           ` SF Markus Elfring
  0 siblings, 0 replies; 9+ messages in thread
From: SF Markus Elfring @ 2017-12-18 17:32 UTC (permalink / raw)
  To: Sebastian Reichel, linux-pm
  Cc: Julia Lawall, Joe Perches, LKML, kernel-janitors

>> But it seems that we are stuck with specific software aspects.
>> How would you like to see remaining open issues to be resolved
>> there anyhow?
> 
> FYI: I will drop this and (without any further notice) all future
> patches from you, that do no follow the documented process in
> Documentation/process/.

Which details do you find that do not fit to this development specification
so far?

Are there any update suggestions left over which you could eventually accept?

Regards,
Markus

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

end of thread, other threads:[~2017-12-18 17:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-16 18:43 [PATCH] tps65090-charger: Delete an error message for a failed memory allocation in two functions SF Markus Elfring
2017-12-16 18:53 ` Joe Perches
2017-12-16 20:30   ` SF Markus Elfring
2017-12-16 20:36     ` Julia Lawall
2017-12-16 20:47       ` SF Markus Elfring
2017-12-18 17:24         ` Sebastian Reichel
2017-12-18 17:32           ` SF Markus Elfring
2017-12-16 20:40     ` Joe Perches
2017-12-16 20:52       ` SF Markus Elfring

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).