summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hidraw.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2010-03-25 15:20:01 +0100
committerJiri Kosina <jkosina@suse.cz>2010-03-25 15:20:01 +0100
commit0a504541b3ba593535d70f3124546e5e471a175e (patch)
tree60dc33b81aa081f697510f40c17cf7263ef549a7 /drivers/hid/hidraw.c
parent2e57480b2a717916510b0c23b2851398a4cbd958 (diff)
downloadop-kernel-dev-0a504541b3ba593535d70f3124546e5e471a175e.zip
op-kernel-dev-0a504541b3ba593535d70f3124546e5e471a175e.tar.gz
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>
Diffstat (limited to 'drivers/hid/hidraw.c')
-rw-r--r--drivers/hid/hidraw.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c
index 589dac5..7919d3e 100644
--- a/drivers/hid/hidraw.c
+++ b/drivers/hid/hidraw.c
@@ -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;
@@ -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];
OpenPOWER on IntegriCloud