HID: roccat: silence an uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 2 Apr 2016 04:44:32 +0000 (07:44 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 4 Apr 2016 07:49:12 +0000 (09:49 +0200)
commit85d08340c3de1126467db4e69140fe483d91c114
tree8736e4301116f766974e7441a5d58d32c28f7785
parentd66435cc7da95964cb386674bd82ec12ca66320a
HID: roccat: silence an uninitialized variable warning

My static checker complains because we use "dev_id" before we check for
errors so it could be uninitialized.  Fix this by moving the error
handling forward a couple lines.

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