Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337551
b: refs/heads/master
c: d05b25b
h: refs/heads/master
i:
  337549: 30afe48
  337547: ecebc52
  337543: 47870d3
  337535: 858a7d9
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Nov 1, 2012
1 parent 261af60 commit dc6ff32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 6192756574a9b1eb86ae9501c5f4bd29e7e5606e
refs/heads/master: d05b25b97c6444fc3db4f9f70d7edbdb754a2e1a
6 changes: 2 additions & 4 deletions trunk/drivers/staging/csr/inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,12 @@ static struct notifier_block uf_inetaddr_notifier = {

void uf_register_inet_notifier(void)
{
if (atomic_inc_return(&inet_notif_refs) == 1) {
if (atomic_inc_return(&inet_notif_refs) == 1)
register_inetaddr_notifier(&uf_inetaddr_notifier);
}
}

void uf_unregister_inet_notifier(void)
{
if (atomic_dec_return(&inet_notif_refs) == 0) {
if (atomic_dec_return(&inet_notif_refs) == 0)
unregister_inetaddr_notifier(&uf_inetaddr_notifier);
}
}

0 comments on commit dc6ff32

Please sign in to comment.