All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Drivers: power: max8997_charger: Fixed coding style and irrelevant messages
@ 2015-09-29 21:22 Shivani Bhardwaj
  2015-09-29 21:24 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Shivani Bhardwaj @ 2015-09-29 21:22 UTC (permalink / raw)
  To: outreachy-kernel

Added blank line after declaration of variables
and commented out an unnecessary error print statement.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
 drivers/power/max8997_charger.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/power/max8997_charger.c b/drivers/power/max8997_charger.c
index 0b2eab5..00127f3 100644
--- a/drivers/power/max8997_charger.c
+++ b/drivers/power/max8997_charger.c
@@ -106,6 +106,7 @@ static int max8997_battery_probe(struct platform_device *pdev)
 
 	if (pdata->eoc_mA) {
 		int val = (pdata->eoc_mA - 50) / 10;
+
 		if (val < 0)
 			val = 0;
 		if (val > 0xf)
@@ -149,7 +150,7 @@ static int max8997_battery_probe(struct platform_device *pdev)
 	charger = devm_kzalloc(&pdev->dev, sizeof(struct charger_data),
 				GFP_KERNEL);
 	if (charger == NULL) {
-		dev_err(&pdev->dev, "Cannot allocate memory.\n");
+		/*dev_err(&pdev->dev, "Cannot allocate memory.\n");*/
 		return -ENOMEM;
 	}
 
-- 
2.1.0



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

end of thread, other threads:[~2015-09-29 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 21:22 [PATCH] Drivers: power: max8997_charger: Fixed coding style and irrelevant messages Shivani Bhardwaj
2015-09-29 21:24 ` [Outreachy kernel] " Julia Lawall

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.