iwlagn: allow power level setting all the times
allow user to set power level at all times Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Родитель
5c2207c642
Коммит
4f01ac0153
|
@ -3093,11 +3093,6 @@ static ssize_t store_power_level(struct device *d,
|
|||
|
||||
mutex_lock(&priv->mutex);
|
||||
|
||||
if (!iwl_is_ready(priv)) {
|
||||
ret = -EAGAIN;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = strict_strtoul(buf, 10, &mode);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
|
|
@ -4550,11 +4550,6 @@ static ssize_t store_power_level(struct device *d,
|
|||
|
||||
mutex_lock(&priv->mutex);
|
||||
|
||||
if (!iwl_is_ready(priv)) {
|
||||
ret = -EAGAIN;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = strict_strtoul(buf, 10, &mode);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
|
Загрузка…
Ссылка в новой задаче