Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d433d04b authored by Ladislav Michl's avatar Ladislav Michl Committed by Sebastian Reichel
Browse files

power: supply: gpio-charger: Remove redundant dev_err call in probe function



There is an error message within devm_kzalloc already.

Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 416a1ae6
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -137,10 +137,8 @@ static int gpio_charger_probe(struct platform_device *pdev)
	}
	}


	gpio_charger = devm_kzalloc(dev, sizeof(*gpio_charger), GFP_KERNEL);
	gpio_charger = devm_kzalloc(dev, sizeof(*gpio_charger), GFP_KERNEL);
	if (!gpio_charger) {
	if (!gpio_charger)
		dev_err(dev, "Failed to alloc driver structure\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	/*
	/*
	 * This will fetch a GPIO descriptor from device tree, ACPI or
	 * This will fetch a GPIO descriptor from device tree, ACPI or