diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-07-23 03:07:09 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2014-07-23 03:07:09 +0200 |
commit | 0a16ee633a83374a2bedbd6a057ab7d7e50a1d50 (patch) | |
tree | a04747d2222543978e9fc0e4af5187976d9f713b /drivers/extcon/extcon-max77693.c | |
parent | Merge tag 'mfd-extcon-regulator-v3.17' of git://git.kernel.org/pub/scm/linux/... (diff) | |
download | linux-0a16ee633a83374a2bedbd6a057ab7d7e50a1d50.tar.xz linux-0a16ee633a83374a2bedbd6a057ab7d7e50a1d50.zip |
extcon: Remove unnecessary OOM messages
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>
[Acked by Charles Keepax for arizona part]
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-max77693.c')
-rw-r--r-- | drivers/extcon/extcon-max77693.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index 042bf742c207..77460f2c1ca1 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) { |