]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB rio500.c: fix check-after-use
authorAdrian Bunk <bunk@kernel.org>
Thu, 18 Oct 2007 10:53:07 +0000 (12:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Oct 2007 19:18:43 +0000 (12:18 -0700)
commit3328d9752f3796a5f5f8695d27a175c34407a5ed
treee97145e9cec05cffecd2cbd296a479404098146f
parente28c6a77061ab28bd2f0b57e400e3e58cd3474ca
USB rio500.c: fix check-after-use

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

Since "dev" being NULL isn't possible at these places this patch removes
the NULL checks.

Additionally, I've fixed the formatting of the if's.

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