Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196290
b: refs/heads/master
c: 0a50454
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Mar 25, 2010
1 parent d68d38b commit f87f145
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 2e57480b2a717916510b0c23b2851398a4cbd958
refs/heads/master: 0a504541b3ba593535d70f3124546e5e471a175e
7 changes: 1 addition & 6 deletions trunk/drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ static int hidraw_open(struct inode *inode, struct file *file)

mutex_lock(&minors_lock);
if (!hidraw_table[minor]) {
printk(KERN_EMERG "hidraw device with minor %d doesn't exist\n",
minor);
kfree(list);
err = -ENODEV;
goto out_unlock;
Expand Down Expand Up @@ -216,11 +214,8 @@ static int hidraw_release(struct inode * inode, struct file * file)
struct hidraw *dev;
struct hidraw_list *list = file->private_data;

if (!hidraw_table[minor]) {
printk(KERN_EMERG "hidraw device with minor %d doesn't exist\n",
minor);
if (!hidraw_table[minor])
return -ENODEV;
}

list_del(&list->node);
dev = hidraw_table[minor];
Expand Down

0 comments on commit f87f145

Please sign in to comment.