Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170934
b: refs/heads/master
c: 1a34c04
h: refs/heads/master
v: v3
  • Loading branch information
Reinette Chatre authored and John W. Linville committed Oct 27, 2009
1 parent 6dc080d commit 8d614b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 55036d6602679fb88dd7b1c19bb7203a0213b684
refs/heads/master: 1a34c043802a213e719420ece395cf25c85cc7c5
4 changes: 3 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,9 @@ static ssize_t iwl_dbgfs_sleep_level_override_write(struct file *file,
* valid here. However, let's not confuse them and present
* IWL_POWER_INDEX_1 as "1", not "0".
*/
if (value > 0)
if (value == 0)
return -EINVAL;
else if (value > 0)
value -= 1;

if (value != -1 && (value < 0 || value >= IWL_POWER_NUM))
Expand Down

0 comments on commit 8d614b9

Please sign in to comment.