]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: Storage: usbat_check_status(): fix check-after-use
authorAdrian Bunk <bunk@stusta.de>
Mon, 30 Jul 2007 22:28:22 +0000 (00:28 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:54:59 +0000 (14:54 -0700)
commita96173af521a173f45d3a27fa24265081f12e978
treea3198b3407b09e041aa0b8f7383b18225799cf2e
parentefc9052e01fd316b7bd6b108feff7689c927ebe9
USB: Storage: usbat_check_status(): fix check-after-use

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

Since "us" can't be NULL in the only caller this patch removes the
NULL check.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/shuttle_usbat.c