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

Commit 18a89d5c authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Sebastian Reichel
Browse files

power: supply: charger-manager: Slighly simplify code



Use 'sizeof(*var)' instead of the equivalent 'sizeof(data structure type)'
because it is less verbose.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 0299484e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1632,8 +1632,7 @@ static int charger_manager_probe(struct platform_device *pdev)
		return -ENODEV;
	}

	cm = devm_kzalloc(&pdev->dev,
			sizeof(struct charger_manager),	GFP_KERNEL);
	cm = devm_kzalloc(&pdev->dev, sizeof(*cm), GFP_KERNEL);
	if (!cm)
		return -ENOMEM;