]> git.baikalelectronics.ru Git - kernel.git/commit
USB iowarrior.c: fix check-after-use
authorAdrian Bunk <bunk@kernel.org>
Thu, 18 Oct 2007 10:52:50 +0000 (12:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Oct 2007 19:18:43 +0000 (12:18 -0700)
commita98d47d387af89b6b33a966282dfe8693ab93055
tree256838abb4d5a6ebab61c8fd0eb4780540150933
parenta6fc37909d202dfb7bf74e1ddbcc7186fe6cc91a
USB iowarrior.c: fix check-after-use

The Coverity checker spotted that we have already oops'ed if "dev"
was NULL.

Since "dev" being NULL doesn't seem to be possible here this patch
removes the NULL check.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/iowarrior.c