mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
HID: remove excessive _EMERG messages from hidraw
We don't need to shout loudly when device gets disconnected while hidraw node has been open, as this is properly handled in disconnect() and protected by minors_lock already. Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
2e57480b2a
commit
0a504541b3
1 changed files with 1 additions and 6 deletions
|
@ -176,8 +176,6 @@ static int hidraw_open(struct inode *inode, struct file *file)
|
||||||
|
|
||||||
mutex_lock(&minors_lock);
|
mutex_lock(&minors_lock);
|
||||||
if (!hidraw_table[minor]) {
|
if (!hidraw_table[minor]) {
|
||||||
printk(KERN_EMERG "hidraw device with minor %d doesn't exist\n",
|
|
||||||
minor);
|
|
||||||
kfree(list);
|
kfree(list);
|
||||||
err = -ENODEV;
|
err = -ENODEV;
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
|
@ -216,11 +214,8 @@ static int hidraw_release(struct inode * inode, struct file * file)
|
||||||
struct hidraw *dev;
|
struct hidraw *dev;
|
||||||
struct hidraw_list *list = file->private_data;
|
struct hidraw_list *list = file->private_data;
|
||||||
|
|
||||||
if (!hidraw_table[minor]) {
|
if (!hidraw_table[minor])
|
||||||
printk(KERN_EMERG "hidraw device with minor %d doesn't exist\n",
|
|
||||||
minor);
|
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
|
||||||
|
|
||||||
list_del(&list->node);
|
list_del(&list->node);
|
||||||
dev = hidraw_table[minor];
|
dev = hidraw_table[minor];
|
||||||
|
|
Loading…
Reference in a new issue