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

Commit e4f666bb authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Yaniv Gardi
Browse files

phy: phy-core.c: remove unnecessary initialization of local variables



There were a few places where variables are initialized unncessarily.
Remove those initializations.

Change-Id: I0c4abb0f17cb630eb45e5d662d5c55ca1ac19087
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Git-commit: d18c960430ca341e5c12a023c805ff8fd10032a6
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 8da911ef
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ EXPORT_SYMBOL_GPL(phy_exit);

int phy_power_on(struct phy *phy)
{
	int ret = -ENOTSUPP;
	int ret;

	ret = phy_pm_runtime_get_sync(phy);
	if (ret < 0 && ret != -ENOTSUPP)
@@ -238,7 +238,7 @@ EXPORT_SYMBOL_GPL(phy_power_on);

int phy_power_off(struct phy *phy)
{
	int ret = -ENOTSUPP;
	int ret;

	mutex_lock(&phy->mutex);
	if (phy->power_count == 1 && phy->ops->power_off) {
@@ -378,7 +378,7 @@ EXPORT_SYMBOL_GPL(of_phy_simple_xlate);
struct phy *phy_get(struct device *dev, const char *string)
{
	int index = 0;
	struct phy *phy = NULL;
	struct phy *phy;

	if (string == NULL) {
		dev_WARN(dev, "missing string\n");