Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248504
b: refs/heads/master
c: fda5fe1
h: refs/heads/master
v: v3
  • Loading branch information
Paul Parsons authored and Jiri Kosina committed May 23, 2011
1 parent cde9a49 commit fcdd118
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: 81024fc41a9353160bc445fda4f96d1aa5e82791
refs/heads/master: fda5fe19725edd6805f2fd742235d1a0d0ba93f5
5 changes: 0 additions & 5 deletions trunk/drivers/char/apm-emulation.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ struct apm_user {
/*
* Local variables
*/
static DEFINE_MUTEX(apm_mutex);
static atomic_t suspend_acks_pending = ATOMIC_INIT(0);
static atomic_t userspace_notification_inhibit = ATOMIC_INIT(0);
static int apm_disabled;
Expand Down Expand Up @@ -275,7 +274,6 @@ apm_ioctl(struct file *filp, u_int cmd, u_long arg)
if (!as->suser || !as->writer)
return -EPERM;

mutex_lock(&apm_mutex);
switch (cmd) {
case APM_IOC_SUSPEND:
mutex_lock(&state_lock);
Expand Down Expand Up @@ -336,7 +334,6 @@ apm_ioctl(struct file *filp, u_int cmd, u_long arg)
mutex_unlock(&state_lock);
break;
}
mutex_unlock(&apm_mutex);

return err;
}
Expand Down Expand Up @@ -371,7 +368,6 @@ static int apm_open(struct inode * inode, struct file * filp)
{
struct apm_user *as;

mutex_lock(&apm_mutex);
as = kzalloc(sizeof(*as), GFP_KERNEL);
if (as) {
/*
Expand All @@ -391,7 +387,6 @@ static int apm_open(struct inode * inode, struct file * filp)

filp->private_data = as;
}
mutex_unlock(&apm_mutex);

return as ? 0 : -ENOMEM;
}
Expand Down

0 comments on commit fcdd118

Please sign in to comment.