lkml.org 
[lkml]   [2012]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] extcon: max77693: Fix uninitialised variable warning
Date
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
Hi Chanwoo,

Please merge this patch with the previous one titled
"extcon: max77693: Use devm_kzalloc"
---
drivers/extcon/extcon-max77693.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 3c29bb7..1da4ad4 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -672,9 +672,10 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
info->max77693->muic,
&max77693_muic_regmap_config);
if (IS_ERR(info->max77693->regmap_muic)) {
+ ret = PTR_ERR(info->max77693->regmap_muic);
dev_err(max77693->dev,
"failed to allocate register map: %d\n", ret);
- return PTR_ERR(info->max77693->regmap_muic);
+ return ret;
}
}
platform_set_drvdata(pdev, info);
--
1.7.4.1


\
 
 \ /
  Last update: 2012-11-21 06:21    [W:0.031 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site