Commit c2fa8edc authored by Nigel Christian's avatar Nigel Christian Committed by Felix Fietkau

mt76: mt7921: remove unnecessary variable

In mt7921_pm_set() the variable "ret" is initialized to zero
and then returned. Remove it and return zero.
Signed-off-by: default avatarNigel Christian <nigel.l.christian@gmail.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent c1941b89
...@@ -164,7 +164,6 @@ mt7921_pm_set(void *data, u64 val) ...@@ -164,7 +164,6 @@ mt7921_pm_set(void *data, u64 val)
{ {
struct mt7921_dev *dev = data; struct mt7921_dev *dev = data;
struct mt76_phy *mphy = dev->phy.mt76; struct mt76_phy *mphy = dev->phy.mt76;
int ret = 0;
mt7921_mutex_acquire(dev); mt7921_mutex_acquire(dev);
...@@ -175,7 +174,7 @@ mt7921_pm_set(void *data, u64 val) ...@@ -175,7 +174,7 @@ mt7921_pm_set(void *data, u64 val)
mt7921_pm_interface_iter, mphy->priv); mt7921_pm_interface_iter, mphy->priv);
mt7921_mutex_release(dev); mt7921_mutex_release(dev);
return ret; return 0;
} }
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment