Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103363
b: refs/heads/master
c: fd4484a
h: refs/heads/master
i:
  103361: cf1a10d
  103359: 942a4f6
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and John W. Linville committed Jul 8, 2008
1 parent 44a29c8 commit c0c02ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 0f687e9aeb590e9581709379f47dd13ee9357258
refs/heads/master: fd4484af7c02b31bcb6090eeb0d85cf947719f2d
10 changes: 4 additions & 6 deletions trunk/net/rfkill/rfkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,17 +501,15 @@ static struct class rfkill_class = {

static int rfkill_add_switch(struct rfkill *rfkill)
{
int error;

mutex_lock(&rfkill_mutex);

error = rfkill_toggle_radio(rfkill, rfkill_states[rfkill->type], 0);
if (!error)
list_add_tail(&rfkill->node, &rfkill_list);
rfkill_toggle_radio(rfkill, rfkill_states[rfkill->type], 0);

list_add_tail(&rfkill->node, &rfkill_list);

mutex_unlock(&rfkill_mutex);

return error;
return 0;
}

static void rfkill_remove_switch(struct rfkill *rfkill)
Expand Down

0 comments on commit c0c02ce

Please sign in to comment.