HID: hidraw: silence an uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 2 Apr 2016 04:45:01 +0000 (07:45 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 4 Apr 2016 07:49:12 +0000 (09:49 +0200)
commit6edac6fde59e231bd297ebcbc3d1bd395006cd1d
tree492878f8c2df2b2418b4fa3581a1ef7ff2ff8fcb
parent85d08340c3de1126467db4e69140fe483d91c114
HID: hidraw: silence an uninitialized variable warning

My static checker complains that "devid" can be uninitialized if
alloc_chrdev_region() fails.  Fix this by moving the error hanling
forward a couple lines.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c