mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
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: Nigel Christian <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
ae6473f1d2
commit
b59e367747
+1
-2
@@ -164,7 +164,6 @@ mt7921_pm_set(void *data, u64 val)
|
||||
{
|
||||
struct mt7921_dev *dev = data;
|
||||
struct mt76_phy *mphy = dev->phy.mt76;
|
||||
int ret = 0;
|
||||
|
||||
mt7921_mutex_acquire(dev);
|
||||
|
||||
@@ -175,7 +174,7 @@ mt7921_pm_set(void *data, u64 val)
|
||||
mt7921_pm_interface_iter, mphy->priv);
|
||||
mt7921_mutex_release(dev);
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user