mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
phy: phy-core.c: remove unnecessary initialization of local variables
There were a few places where variables are initialized unncessarily. Remove those initializations. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
parent
637d378cea
commit
d18c960430
1 changed files with 3 additions and 3 deletions
|
@ -210,7 +210,7 @@ EXPORT_SYMBOL_GPL(phy_exit);
|
||||||
|
|
||||||
int phy_power_on(struct phy *phy)
|
int phy_power_on(struct phy *phy)
|
||||||
{
|
{
|
||||||
int ret = -ENOTSUPP;
|
int ret;
|
||||||
|
|
||||||
ret = phy_pm_runtime_get_sync(phy);
|
ret = phy_pm_runtime_get_sync(phy);
|
||||||
if (ret < 0 && ret != -ENOTSUPP)
|
if (ret < 0 && ret != -ENOTSUPP)
|
||||||
|
@ -238,7 +238,7 @@ EXPORT_SYMBOL_GPL(phy_power_on);
|
||||||
|
|
||||||
int phy_power_off(struct phy *phy)
|
int phy_power_off(struct phy *phy)
|
||||||
{
|
{
|
||||||
int ret = -ENOTSUPP;
|
int ret;
|
||||||
|
|
||||||
mutex_lock(&phy->mutex);
|
mutex_lock(&phy->mutex);
|
||||||
if (phy->power_count == 1 && phy->ops->power_off) {
|
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)
|
struct phy *phy_get(struct device *dev, const char *string)
|
||||||
{
|
{
|
||||||
int index = 0;
|
int index = 0;
|
||||||
struct phy *phy = NULL;
|
struct phy *phy;
|
||||||
|
|
||||||
if (string == NULL) {
|
if (string == NULL) {
|
||||||
dev_WARN(dev, "missing string\n");
|
dev_WARN(dev, "missing string\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue