USB: gtco.c: fix a use-before-check
authorAdrian Bunk <bunk@stusta.de>
Mon, 19 Mar 2007 09:26:32 +0000 (10:26 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:36 +0000 (13:28 -0700)
commit1b55fa2d430d6c708d3e5efbc6134be4a0c32b15
treecb512cfbd98b12e53ed5f638bb77312a2c4dfd6e
parentf81ee4d52880b08c213982df5041217212689960
USB: gtco.c: fix a use-before-check

NULL checks should be before the first dereference.

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/input/gtco.c