* [PATCH] extcon: Remove unnecessary OOM messages
@ 2014-06-18 5:30 Jingoo Han
2014-06-18 9:06 ` Charles Keepax
2014-06-20 1:13 ` Chanwoo Choi
0 siblings, 2 replies; 3+ messages in thread
From: Jingoo Han @ 2014-06-18 5:30 UTC (permalink / raw)
To: 'Chanwoo Choi'
Cc: 'MyungJoo Ham', linux-kernel, 'Jingoo Han',
'Charles Keepax', 'Krzysztof Kozlowski'
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message. The following
checkpatch warning is also removed.
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/extcon/extcon-arizona.c | 4 +---
drivers/extcon/extcon-max14577.c | 5 ++---
drivers/extcon/extcon-max77693.c | 5 ++---
drivers/extcon/extcon-max8997.c | 4 +---
4 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
index 6c84e3d..90223a3 100644
--- a/drivers/extcon/extcon-arizona.c
+++ b/drivers/extcon/extcon-arizona.c
@@ -1103,10 +1103,8 @@ static int arizona_extcon_probe(struct platform_device *pdev)
return -EPROBE_DEFER;
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
- if (!info) {
- dev_err(&pdev->dev, "Failed to allocate memory\n");
+ if (!info)
return -ENOMEM;
- }
info->micvdd = devm_regulator_get(arizona->dev, "MICVDD");
if (IS_ERR(info->micvdd)) {
diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c
index d49e891..7309743 100644
--- a/drivers/extcon/extcon-max14577.c
+++ b/drivers/extcon/extcon-max14577.c
@@ -692,10 +692,9 @@ static int max14577_muic_probe(struct platform_device *pdev)
u8 id;
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
- if (!info) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!info)
return -ENOMEM;
- }
+
info->dev = &pdev->dev;
info->max14577 = max14577;
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 2c7c3e1..47998a2 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -1099,10 +1099,9 @@ static int max77693_muic_probe(struct platform_device *pdev)
info = devm_kzalloc(&pdev->dev, sizeof(struct max77693_muic_info),
GFP_KERNEL);
- if (!info) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!info)
return -ENOMEM;
- }
+
info->dev = &pdev->dev;
info->max77693 = max77693;
if (info->max77693->regmap_muic) {
diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c
index d9f7f1b..045e230 100644
--- a/drivers/extcon/extcon-max8997.c
+++ b/drivers/extcon/extcon-max8997.c
@@ -661,10 +661,8 @@ static int max8997_muic_probe(struct platform_device *pdev)
info = devm_kzalloc(&pdev->dev, sizeof(struct max8997_muic_info),
GFP_KERNEL);
- if (!info) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!info)
return -ENOMEM;
- }
info->dev = &pdev->dev;
info->muic = max8997->muic;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] extcon: Remove unnecessary OOM messages
2014-06-18 5:30 [PATCH] extcon: Remove unnecessary OOM messages Jingoo Han
@ 2014-06-18 9:06 ` Charles Keepax
2014-06-20 1:13 ` Chanwoo Choi
1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2014-06-18 9:06 UTC (permalink / raw)
To: Jingoo Han
Cc: 'Chanwoo Choi', 'MyungJoo Ham', linux-kernel,
'Krzysztof Kozlowski'
On Wed, Jun 18, 2014 at 02:30:21PM +0900, Jingoo Han wrote:
> The site-specific OOM messages are unnecessary, because they
> duplicate the MM subsystem generic OOM message. The following
> checkpatch warning is also removed.
>
> WARNING: Possible unnecessary 'out of memory' message
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
For the Arizona bit:
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] extcon: Remove unnecessary OOM messages
2014-06-18 5:30 [PATCH] extcon: Remove unnecessary OOM messages Jingoo Han
2014-06-18 9:06 ` Charles Keepax
@ 2014-06-20 1:13 ` Chanwoo Choi
1 sibling, 0 replies; 3+ messages in thread
From: Chanwoo Choi @ 2014-06-20 1:13 UTC (permalink / raw)
To: Jingoo Han
Cc: 'MyungJoo Ham', linux-kernel, 'Charles Keepax',
'Krzysztof Kozlowski'
On 06/18/2014 02:30 PM, Jingoo Han wrote:
> The site-specific OOM messages are unnecessary, because they
> duplicate the MM subsystem generic OOM message. The following
> checkpatch warning is also removed.
>
> WARNING: Possible unnecessary 'out of memory' message
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/extcon/extcon-arizona.c | 4 +---
> drivers/extcon/extcon-max14577.c | 5 ++---
> drivers/extcon/extcon-max77693.c | 5 ++---
> drivers/extcon/extcon-max8997.c | 4 +---
> 4 files changed, 6 insertions(+), 12 deletions(-)
Applied it.
Thanks,
Chanwoo Choi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-20 1:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18 5:30 [PATCH] extcon: Remove unnecessary OOM messages Jingoo Han
2014-06-18 9:06 ` Charles Keepax
2014-06-20 1:13 ` Chanwoo Choi
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).